diff options
author | Dan Radez <dradez@redhat.com> | 2015-12-07 09:31:02 -0500 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2015-12-07 09:31:02 -0500 |
commit | 751106d3ff6311c6f785075d37a8f31f4e98d95f (patch) | |
tree | 65e8669e79c6b64d1e4e225b0347830be42f48c0 | |
parent | 51ac87ec20ca9955e7fc63dd722ea2c0dbe49c32 (diff) |
adding quotes to a string check in deploy
Change-Id: I41881c914494e329570c76fba9f4e0f1dce50e50
-rwxr-xr-x | ci/deploy.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index 9e6c1e08..f163ce34 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -234,7 +234,7 @@ function copy_materials { # ensure stack user on instack machine has an ssh key ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "if [ ! -e ~/.ssh/id_rsa.pub ]; then ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa; fi" - if [ $virtual == "TRUE" ]; then + if [ "$virtual" == "TRUE" ]; then # fix MACs to match new setup for i in $(seq 0 $vm_index); do pyscript="import json @@ -261,7 +261,7 @@ print data['nodes'][$i]['mac'][0]" # allow stack to control power management on the hypervisor via sshkey # only if this is a virtual deployment - if [ $virtual == "TRUE" ]; then + if [ "$virtual" == "TRUE" ]; then ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI while read -r line; do stack_key=\${stack_key}\\\\\\\\n\${line} |