Fix the indentation when generating mac addresses 25/50325/1
authorAlex Yang <yangyang1@zte.com.cn>
Wed, 10 Jan 2018 00:56:27 +0000 (08:56 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Wed, 10 Jan 2018 00:56:27 +0000 (08:56 +0800)
The indentations in deploy.yml of virtual pods were modified
when the files were moved from securedlab to pharos.

Change-Id: I94bcbc155b0eebb03c48939c9902b313fb5ffd2b
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
ci/deploy/deploy.sh

index ff74061..c508e47 100755 (executable)
@@ -487,20 +487,20 @@ function get_mac_addresses_for_virtual()
             name=${VM_MULTINODE[$i]}
             macs=$(virsh dumpxml $name | grep "<mac" | awk -F "'" '{print $2}' | tr "\n" " ")
             line=$(awk "BEGIN{}(/name/&&/$name/){print NR}" $tmpfile)
-            sed -i "${line}a\  mac_addresses:" $tmpfile
+            sed -i "${line}a\    mac_addresses:" $tmpfile
             for mac in $macs; do
                 line=$[ line + 1 ]
-                sed -i "${line}a\    - \'$mac\'" $tmpfile
+                sed -i "${line}a\      - \'$mac\'" $tmpfile
             done
         done
     else
         name="all_in_one"
         macs=$(virsh dumpxml $name | grep "<mac" | awk -F "'" '{print $2}' | tr "\n" " ")
         line=$(awk "BEGIN{}(/name/&&/$name/){print NR}" $tmpfile)
-        sed -i "${line}a\  mac_addresses:" $tmpfile
+        sed -i "${line}a\    mac_addresses:" $tmpfile
         for mac in $macs; do
             line=$[ line + 1 ]
-            sed -i "${line}a\    - \'$mac\'" $tmpfile
+            sed -i "${line}a\      - \'$mac\'" $tmpfile
         done
     fi