From dacbc5ffdf527abe0e2ebb23b29dc490698e08bf Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 28 Jul 2016 15:15:29 -0400 Subject: [PATCH] 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 --- keystoneauth1/session.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keystoneauth1/session.py b/keystoneauth1/session.py index ee7596f0..db01a4de 100644 --- a/keystoneauth1/session.py +++ b/keystoneauth1/session.py @@ -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