summaryrefslogtreecommitdiffstats
path: root/ci/openstack.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-02-04 05:52:18 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-02-04 05:52:18 -0600
commitf17514e7302e486499bbb7e0d51a313f78b159c1 (patch)
tree14f13f48264c988d92207d068c85f20eac74215e /ci/openstack.sh
parent94a8edadc9581d3271a19a69648784aee95b3a5e (diff)
use the correct method to get vip of keystone
Change-Id: I48a8ae02461f2af68f5b1223596565e59bca75f0 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/openstack.sh')
-rwxr-xr-xci/openstack.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh
index f7518317..1c40cf52 100755
--- a/ci/openstack.sh
+++ b/ci/openstack.sh
@@ -75,9 +75,9 @@ keystoneIp() {
unitAddress keystone 0
else
if [[ "$jujuver" < "2" ]]; then
- juju get keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['vip']['value']"
+ juju get keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['vip']['value']" | cut -d " " -f 1
else
- juju config keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['vip']['value']"
+ juju config keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['vip']['value']" | cut -d " " -f 1
fi
fi
}