summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-08-05 19:41:24 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-05 19:41:59 -0500
commitaeaadc15fd3b0699232df9e1752c41f23dee59f0 (patch)
tree97d5ae02fee4d08bac926416925a48d114a0240e /ci
parent669a243f81e11b1fb4e74ac58f8c6f426f1c7751 (diff)
modfied to support the real API name.
Change-Id: I0da92b7f633953574b905d9f4491f087f8152d7f Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/openstack.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh
index 7cd7efd0..751b10a1 100755
--- a/ci/openstack.sh
+++ b/ci/openstack.sh
@@ -68,7 +68,7 @@ create_openrc() {
}
configOpenrc() {
-if [ "$API_FQDN" != "''" ]; then
+if [ "$API_FQDN" != "None" ]; then
cat <<-EOF
export OS_USERNAME=$1
export OS_PASSWORD=$2
@@ -94,7 +94,7 @@ EOF
fi
}
-if [ "$API_FQDN" != "''" ]; then
+if [ "$API_FQDN" != "None" ]; then
# Push api fqdn local ip to all /etc/hosts
API_FQDN=$(juju get keystone | python -c "import yaml; import sys;\
print yaml.load(sys.stdin)['settings']['os-public-hostname']['value']")