diff options
author | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2017-01-30 12:40:55 +0100 |
---|---|---|
committer | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2017-01-30 13:32:13 +0100 |
commit | 324e79bac3985fc3e2599c5d0567fec59a217418 (patch) | |
tree | 430d33a8f4f2c71ed67b20ad7b4b3432469588a0 /tools/keystone/endpoint.sh | |
parent | 9f9356251d1e5d1812ac16859f8b6b6f20eeb8dd (diff) |
Fix script execution on wrong target
All scripts are now triggered via run.sh which is a proxy to controllers
and computes.
Change-Id: Ifd35d5405d30b9aed002515e55a3b9047098a0d4
Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
JIRA: MULTISITE-34
Diffstat (limited to 'tools/keystone/endpoint.sh')
-rwxr-xr-x | tools/keystone/endpoint.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/keystone/endpoint.sh b/tools/keystone/endpoint.sh index b79638f..1bb6c9b 100755 --- a/tools/keystone/endpoint.sh +++ b/tools/keystone/endpoint.sh @@ -16,9 +16,8 @@ set -o pipefail # Ensure that openrc containing OpenStack environment variables is present. source openrc -# if running as part of Jenkins job, create the file in WORKSPACE -WORKSPACE=${WORKSPACE:-/root} -ENDPOINT_FILE="${WORKSPACE}/endpoints.ini" +# Always executed on controller +ENDPOINT_FILE="/root/endpoints.ini" # Endpoints. Dynamically get IP addresses from another service (keystone) ENDPOINT_PUBLIC_URL=$(openstack endpoint list | grep keystone | grep public | cut -d '|' -f 8 | cut -d '/' -f 3 | cut -d ':' -f 1) |