Merge "Fix arguments to _auth_required()"

This commit is contained in:
Jenkins 2016-07-29 22:59:46 +00:00 committed by Gerrit Code Review
commit cbd2e4021e
1 changed files with 1 additions and 2 deletions

View File

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