summaryrefslogtreecommitdiffstats
path: root/tools/keystone
diff options
context:
space:
mode:
Diffstat (limited to 'tools/keystone')
-rwxr-xr-xtools/keystone/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/keystone/run.sh b/tools/keystone/run.sh
index 8fe933f..a4dca82 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"}
+export WORKSPACE=${WORKSPACE:-"/root"}
usage() {
echo "usage: $0 -a <installer_ip> -t (controller|compute) -r <runnable_script.sh> -d <data_file> -o <output_file>" >&2
@@ -94,7 +94,7 @@ function run_on_target() {
if [ -n "${output}" ]; then
#Fetch output file
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
- "ssh $ssh_options $1 \"cd /root/ && cat ${output}\"" > "${WORKSPACE}/${output}"
+ "ssh $ssh_options $1 \"cat /root/${output}\"" > ${WORKSPACE}/${output}
fi
}