Fix arguments to _auth_required()
_auth_required() already prepends the string "An auth plugin is required to" to the message callers pass-in. Change get_auth_connection_params() to pass a correct, shortened string. Change-Id: Iab9c6d7fa92e0d5400dece2f9a18a7a5d3cad497
This commit is contained in:
parent
86e010cc83
commit
dacbc5ffdf
@ -794,8 +794,7 @@ class Session(object):
|
||||
:returns: Authentication headers or None for failure.
|
||||
:rtype: :class:`dict`
|
||||
"""
|
||||
msg = 'An auth plugin is required to fetch connection params'
|
||||
auth = self._auth_required(auth, msg)
|
||||
auth = self._auth_required(auth, 'fetch connection params')
|
||||
params = auth.get_connection_params(self, **kwargs)
|
||||
|
||||
# NOTE(jamielennox): There needs to be some consensus on what
|
||||
|
Loading…
x
Reference in New Issue
Block a user