modfiied to check more strict API_DOMAIN 49/39049/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 10 Aug 2017 10:50:03 +0000 (05:50 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Thu, 10 Aug 2017 10:50:46 +0000 (05:50 -0500)
Change-Id: If45ad3e25243c666eeb420e9e43b3bc9896bcfa3
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/openstack.sh

index ed082b9..9020fd7 100755 (executable)
@@ -150,7 +150,7 @@ export OS_AUTH_URL=$4
 EOF
 }
 
-if [ "$API_FQDN" != "None" ]; then
+if ([ $API_FQDN ] && [ $API_FQDN != "null" ] && [ $API_FQDN != "None"]); then
     # Push api fqdn local ip to all /etc/hosts
     if [[ "$jujuver" < "2" ]]; then
         API_FQDN=$(juju get keystone | python -c "import yaml; import sys;\