Merge "Fix arguments to _auth_required()"
This commit is contained in:
commit
cbd2e4021e
@ -794,8 +794,7 @@ class Session(object):
|
|||||||
:returns: Authentication headers or None for failure.
|
:returns: Authentication headers or None for failure.
|
||||||
:rtype: :class:`dict`
|
:rtype: :class:`dict`
|
||||||
"""
|
"""
|
||||||
msg = 'An auth plugin is required to fetch connection params'
|
auth = self._auth_required(auth, 'fetch connection params')
|
||||||
auth = self._auth_required(auth, msg)
|
|
||||||
params = auth.get_connection_params(self, **kwargs)
|
params = auth.get_connection_params(self, **kwargs)
|
||||||
|
|
||||||
# NOTE(jamielennox): There needs to be some consensus on what
|
# NOTE(jamielennox): There needs to be some consensus on what
|
||||||
|
Loading…
Reference in New Issue
Block a user