modfied to support the real API name. 05/18105/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Sat, 6 Aug 2016 00:41:24 +0000 (19:41 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Sat, 6 Aug 2016 00:41:59 +0000 (19:41 -0500)
Change-Id: I0da92b7f633953574b905d9f4491f087f8152d7f
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/openstack.sh

index 7cd7efd..751b10a 100755 (executable)
@@ -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']")