Revert "Avoid to authenticate twice"
This reverts commit ffd548c774ed77dfd1a31f4424194f06ad5d6a8c. Token plugin doesn't have get_access. Change-Id: I624b1bc557a195bdf8a7c5a32dc0e72a6fa8b075
This commit is contained in:
parent
ffd548c774
commit
aec3f4a831
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user