From 6df8caa421b7ef6bee5a235077da094f1b4467a8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 15 Mar 2019 09:51:40 +1100 Subject: [PATCH] Change to parent dir in run_k8s_ansible.sh This is calling tools/cloud-to-env.py without a full path, which fails when it's called from the run_all_script which hasn't cd'd to /opt/system-config. Use the old "cd to my parent dir" at the start of the script. Change-Id: I54a97c6942edd8a047ac679f6b0b08f0e5595f1f --- run_k8s_ansible.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_k8s_ansible.sh b/run_k8s_ansible.sh index db639ebe7f..9f5ad3e9d1 100755 --- a/run_k8s_ansible.sh +++ b/run_k8s_ansible.sh @@ -20,6 +20,7 @@ # of this that could be cleaned up upstream, but doing so makes the actual # os_ module invocations really chatty. +cd "$(dirname "$0")" eval $(python3 tools/cloud-to-env.py --cloud=openstackci-vexxhost --region=sjc1) export KEY="bridge-root-2014-09-15"