Fix AuthPlugin authentification
AuthPlugin wrongly assumed that self.opts['token'] is always a function. Change-Id: I968c62aec0d16d736693e403d03a495baf8ea15a Closes-Bug: #1369461
This commit is contained in:
@@ -183,7 +183,7 @@ class AuthPlugin(auth.BaseAuthPlugin):
|
||||
token = lambda: ks_session.get_token()
|
||||
endpoint = self.opts.get('endpoint') or \
|
||||
_get_endpoint(ks_session, **ks_kwargs)
|
||||
self.opts['token'] = token()
|
||||
self.opts['token'] = token
|
||||
self.opts['endpoint'] = endpoint
|
||||
|
||||
def token_and_endpoint(self, endpoint_type, service_type):
|
||||
|
||||
Reference in New Issue
Block a user