summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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