summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2018-01-10 08:56:27 +0800
committerAlex Yang <yangyang1@zte.com.cn>2018-01-10 08:56:27 +0800
commite0d3f6945b133789c246bd2dfe142e0ef9b24c74 (patch)
tree2b23eee9ee5dabaa22c8f66d234decd51acc590d /ci
parentabfc71804f3d7e84cea6fee25697783f7160f9ec (diff)
Fix the indentation when generating mac addresses
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>
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy/deploy.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh
index ff74061e..c508e471 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -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