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:
Pavlo Shchelokovskyy
2014-09-15 12:24:56 +03:00
parent d4bada707b
commit 925f3a4e39

View File

@@ -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):