summaryrefslogtreecommitdiffstats
path: root/ci/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'ci/deploy')
-rwxr-xr-xci/deploy/deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh
index f8250c26..e4a3851b 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -346,7 +346,7 @@ function get_mac_addresses_for_virtual()
for ((i=0;i<${#VM_MULTINODE[@]};i++));do
name=${VM_MULTINODE[$i]}
macs=$(virsh dumpxml $name | grep "<mac" | awk -F "'" '{print $2}' | tr "\n" " ")
- line=$(awk "BEGIN{}(/name/&&/controller01/){print NR}" $tmpfile)
+ line=$(awk "BEGIN{}(/name/&&/$name/){print NR}" $tmpfile)
sed -i "${line}a\ mac_addresses:" $tmpfile
for mac in $macs; do
line=$[ line + 1 ]