summaryrefslogtreecommitdiffstats
path: root/ci/deploy/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/deploy/deploy.sh')
-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 0abc4e25..8dbda717 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -339,7 +339,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 ]