diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-08-06 16:52:25 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-08-06 16:52:25 +0000 |
commit | 943d726a069640bc988c83379516ab8caa940691 (patch) | |
tree | d977b6b3dcbbebfbf9677c6bb9b4cfbdb56a7f71 | |
parent | b4e91902dbd8d8afc1d74262b2f0c4c2c2467832 (diff) | |
parent | bfffd1cec5c3195ac1759094635401eaabbfa8f4 (diff) | |
download | tuskar-ui-943d726a069640bc988c83379516ab8caa940691.tar.gz |
Merge "Fixes EndpointNotFound after deployment"
-rw-r--r-- | tuskar_ui/api/heat.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tuskar_ui/api/heat.py b/tuskar_ui/api/heat.py index 9852ca00..923565ec 100644 --- a/tuskar_ui/api/heat.py +++ b/tuskar_ui/api/heat.py @@ -429,12 +429,14 @@ class Stack(base.APIResourceWrapper): if not client: return [] - services = client.services.list() - - for service in services: - if service.name == 'horizon': - break - else: + try: + services = client.services.list() + for service in services: + if service.name == 'horizon': + break + else: + return [] + except Exception: return [] admin_urls = [endpoint.adminurl for endpoint |