From c42a9c8248381e33c4fd7155eeb15df7937d411b Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Mon, 30 Jan 2017 14:49:44 +0100 Subject: Minor bug fix Integration test in progress Change-Id: I12cb78afcfeb1cd377e1d89e6761ee9c6ab3487c Signed-off-by: Dimitri Mazmanov --- tools/keystone/run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/keystone/run.sh b/tools/keystone/run.sh index d0a2b06..0389f6f 100755 --- a/tools/keystone/run.sh +++ b/tools/keystone/run.sh @@ -20,7 +20,7 @@ set -o pipefail INSTALLER_IP=10.20.0.2 # Runs on the jumphost # if running as part of Jenkins job, read and create the files from/in WORKSPACE -WORKSPACE=${WORKSPACE:-/root} +WORKSPACE=${WORKSPACE:-"/root"} usage() { echo "usage: $0 -a -t (controller|compute) -r -d -o " >&2 @@ -65,6 +65,7 @@ case $1 in ;; esac shift # past argument or value +done installer_ip=${installer_ip:-$INSTALLER_IP} data=${data:-""} @@ -95,6 +96,7 @@ function run_on_target() { sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ "ssh $ssh_options $1 \"cd /root/ && cat ${output}\"" > "${WORKSPACE}/${output}" fi + } target_info=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ @@ -103,4 +105,4 @@ sed 's/ //g') &> /dev/null for machine in ${target_info} ; do run_on_target $machine -done +done \ No newline at end of file -- cgit 1.2.3-korg