Revert "added to retrieve the password." 21/48821/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Wed, 13 Dec 2017 16:14:43 +0000 (16:14 +0000)
committerNarinder Gupta <narinder.gupta@canonical.com>
Wed, 13 Dec 2017 16:14:43 +0000 (16:14 +0000)
This reverts commit 35d8e1a92016ceb218b1d620a556b9a77d2dc02c.

Change-Id: Ia0203368af53bdcdf76ca02191e01f580770c798
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/openstack.sh

index 3c8f975..b35f28c 100755 (executable)
@@ -72,7 +72,7 @@ create_openrc() {
 
     mkdir -m 0700 -p cloud
     keystoneIp=$(keystoneIp)
-    adminPasswd=$(juju config keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['admin-password']['value']" | cut -d " " -f 1)
+    adminPasswd=$(juju config keystone | grep admin-password -A 5 | grep value | awk '{print $2}' 2> /dev/null)
 
     v3api=`juju config keystone  preferred-api-version`