From: Narinder Gupta Date: Sat, 4 Feb 2017 11:52:18 +0000 (-0600) Subject: use the correct method to get vip of keystone X-Git-Tag: danube.1.0~63 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=f17514e7302e486499bbb7e0d51a313f78b159c1;p=joid.git use the correct method to get vip of keystone Change-Id: I48a8ae02461f2af68f5b1223596565e59bca75f0 Signed-off-by: Narinder Gupta --- 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 }