From 35d8e1a92016ceb218b1d620a556b9a77d2dc02c Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Wed, 13 Dec 2017 09:56:38 -0600 Subject: added to retrieve the password. Change-Id: Id9138c32e748ec54db78e5a54f998f53b46be819 Signed-off-by: Narinder Gupta --- ci/openstack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/openstack.sh b/ci/openstack.sh index b35f28c1..3c8f9757 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -72,7 +72,7 @@ create_openrc() { 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` -- cgit 1.2.3-korg