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:
Brian Haley 2016-07-28 15:15:29 -04:00
parent 86e010cc83
commit dacbc5ffdf
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