Merge "Avoid to authenticate twice"

This commit is contained in:
Jenkins 2017-04-19 14:30:02 +00:00 committed by Gerrit Code Review
commit 7cbadcbe86
1 changed files with 2 additions and 5 deletions

View File

@ -225,11 +225,8 @@ class ClientManager(object):
@property
def auth_ref(self):
"""Dereference will trigger an auth if it hasn't already"""
if not self._auth_ref:
self.setup_auth()
LOG.debug("Get auth_ref")
self._auth_ref = self.auth.get_auth_ref(self.session)
return self._auth_ref
self.setup_auth()
return self.auth.get_access(self.session)
def is_service_available(self, service_type):
"""Check if a service type is in the current Service Catalog"""