From 7a13754eebb15a3c7fa507ad1d58e3c4460e302c Mon Sep 17 00:00:00 2001 From: Pete Zaitcev Date: Fri, 4 May 2018 13:31:03 -0500 Subject: Use a valid default for auth_version The valid set of values for auth_version does not include values starting with the 'v'. In this particular function, the auth_version variable is only used for comparisons with v3. So, the code worked correctly. However, let's clean this up in order to reduce review confusion and defuse possible future landmine in case of code changes. Change-Id: I671016d7992a1922b786b4eb8876b3fbb2532e15 --- swiftclient/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftclient/client.py') diff --git a/swiftclient/client.py b/swiftclient/client.py index ab0fde8..e92e3ca 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -565,7 +565,7 @@ def get_auth_keystone(auth_url, user, key, os_options, **kwargs): # Legacy default if not set if auth_version is None: - auth_version = 'v2.0' + auth_version = '2' ksclient, exceptions = _import_keystone_client(auth_version) try: -- cgit v1.2.1