summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-06 16:52:25 +0000
committerGerrit Code Review <review@openstack.org>2015-08-06 16:52:25 +0000
commit943d726a069640bc988c83379516ab8caa940691 (patch)
treed977b6b3dcbbebfbf9677c6bb9b4cfbdb56a7f71
parentb4e91902dbd8d8afc1d74262b2f0c4c2c2467832 (diff)
parentbfffd1cec5c3195ac1759094635401eaabbfa8f4 (diff)
downloadtuskar-ui-943d726a069640bc988c83379516ab8caa940691.tar.gz
Merge "Fixes EndpointNotFound after deployment"
-rw-r--r--tuskar_ui/api/heat.py14
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