From: Ross Brattain Date: Wed, 7 Mar 2018 16:09:03 +0000 (-0800) Subject: bugfix: fix prepare_env.sh shell quote X-Git-Tag: opnfv-6.0.0~93 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=0c455af95a0f2258401b54cbca0d84732433fb24;p=yardstick.git bugfix: fix prepare_env.sh shell quote JIRA: YARDSTICK-1051 Change-Id: If28bc0f2fe2e3cdec95882bb2abedf839e6ac2e0 Signed-off-by: Ross Brattain --- diff --git a/tests/ci/prepare_env.sh b/tests/ci/prepare_env.sh index 886e50e21..a097cec69 100755 --- a/tests/ci/prepare_env.sh +++ b/tests/ci/prepare_env.sh @@ -74,8 +74,8 @@ if [ "$INSTALLER_TYPE" == "fuel" ]; then ssh -l ubuntu "${INSTALLER_IP}" -i ${SSH_KEY} ${ssh_options} \ "sudo salt -C 'ctl* or cmp*' grains.get fqdn_ip4 --out yaml">node_info - controller_ips=($(awk '/ctl/{getline; print $2} < node_info')) - compute_ips=($(awk '/cmp/{getline; print $2} < node_info')) + controller_ips=($(awk '/ctl/{getline; print $2}' < node_info)) + compute_ips=($(awk '/cmp/{getline; print $2}' < node_info)) if [[ ${controller_ips[0]} ]]; then sed -i "s|ip1|${controller_ips[0]}|" "${pod_yaml}"