Merge "Ensure keystoneauth1 exception are raised"

This commit is contained in:
Jenkins
2015-11-27 00:38:26 +00:00
committed by Gerrit Code Review

View File

@@ -94,7 +94,11 @@ class Client(object):
else:
kwargs["service_type"] = "alarming"
try:
return ceiloclient._construct_http_client(**kwargs), True
c = ceiloclient._construct_http_client(**kwargs)
# NOTE(sileht): when a keystoneauth1 session object is used
# endpoint looking is done on first request, so do it.
c.get("/")
return c, True
except ka_exc.EndpointNotFound:
return self.http_client, False
except kc_exc.EndpointNotFound: