summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-12-13 09:56:38 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-12-13 10:06:45 -0600
commit35d8e1a92016ceb218b1d620a556b9a77d2dc02c (patch)
treef88048400ea380019f96b783fa5f4005aa7b3d0a /ci
parentca982420d06e68d4c4cc861ee26e4a3418d2b36f (diff)
added to retrieve the password.
Change-Id: Id9138c32e748ec54db78e5a54f998f53b46be819 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/openstack.sh2
1 files changed, 1 insertions, 1 deletions
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`