summaryrefslogtreecommitdiffstats
path: root/tools/keystone/region.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/keystone/region.sh')
-rwxr-xr-xtools/keystone/region.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/keystone/region.sh b/tools/keystone/region.sh
index 1ae108f..c42401d 100755
--- a/tools/keystone/region.sh
+++ b/tools/keystone/region.sh
@@ -27,7 +27,9 @@ source openrc
#
# openstack endpoint create --publicurl "" --adminurl "" --internalurl "" --region ${region} <service>
-ENDPOINT_FILE="/root/endpoints.ini"
+# if running as part of Jenkins job, read the file from WORKSPACE
+WORKSPACE=${WORKSPACE:-/root}
+ENDPOINT_FILE="${WORKSPACE}/endpoints.ini"
# Get an option from an INI file
# iniget config-file section option