Merge "Fixes EndpointNotFound after deployment"

This commit is contained in:
Jenkins 2015-08-06 16:52:25 +00:00 committed by Gerrit Code Review
commit 943d726a06

View File

@ -429,12 +429,14 @@ class Stack(base.APIResourceWrapper):
if not client: if not client:
return [] return []
services = client.services.list() try:
services = client.services.list()
for service in services: for service in services:
if service.name == 'horizon': if service.name == 'horizon':
break break
else: else:
return []
except Exception:
return [] return []
admin_urls = [endpoint.adminurl for endpoint admin_urls = [endpoint.adminurl for endpoint