diff options
Diffstat (limited to 'ci/openstack.sh')
-rwxr-xr-x | ci/openstack.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh index 3a9a7ebe..9020fd7c 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -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;\ @@ -170,7 +170,7 @@ if [ "$API_FQDN" != "None" ]; then fi" # remove this enhancement for heat that does not manage endpoints - juju run --service=heat "cp /etc/hosts /tmp/hosts ; \ + juju run --application=heat "cp /etc/hosts /tmp/hosts ; \ grep -v $API_FQDN /tmp/hosts > /etc/hosts" #change in jumphost as well as below commands will run on jumphost |