added to retrieve the password. 11/48811/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Wed, 13 Dec 2017 15:56:38 +0000 (09:56 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Wed, 13 Dec 2017 16:06:45 +0000 (10:06 -0600)
Change-Id: Id9138c32e748ec54db78e5a54f998f53b46be819
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/openstack.sh

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