summaryrefslogtreecommitdiffstats
path: root/ci/deploy
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-08-01 11:49:53 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-08-01 11:49:53 +0800
commit06b0039222b1a71f1ed7cf7378871d14a5f6b904 (patch)
tree41801b8025729ec4f3138221fbce4751405176d3 /ci/deploy
parent49829982ba955fea91ad56cc05fd526eab106f14 (diff)
Fix typo in patch 38381
JIRA: DAISY-56 controller01 -> $name Change-Id: Icd959ca55079a6ac0bfbd181ff134d7decfb89f5 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
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 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 ]