use the correct method to get vip of keystone 31/28031/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Sat, 4 Feb 2017 11:52:18 +0000 (05:52 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Sat, 4 Feb 2017 11:52:18 +0000 (05:52 -0600)
Change-Id: I48a8ae02461f2af68f5b1223596565e59bca75f0
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/openstack.sh

index f751831..1c40cf5 100755 (executable)
@@ -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
 }