Revert "Avoid to authenticate twice"

This reverts commit ffd548c774.

Token plugin doesn't have get_access.

Change-Id: I624b1bc557a195bdf8a7c5a32dc0e72a6fa8b075
This commit is contained in:
Dean Troyer 2017-04-20 16:35:29 +00:00
parent ffd548c774
commit aec3f4a831
1 changed files with 5 additions and 2 deletions

View File

@ -225,8 +225,11 @@ class ClientManager(object):
@property
def auth_ref(self):
"""Dereference will trigger an auth if it hasn't already"""
self.setup_auth()
return self.auth.get_access(self.session)
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
def is_service_available(self, service_type):
"""Check if a service type is in the current Service Catalog"""