summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>2018-05-04 13:31:03 -0500
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>2018-05-04 13:31:03 -0500
commit7a13754eebb15a3c7fa507ad1d58e3c4460e302c (patch)
tree09ebcd415c814f55d670285252a44f11faf9e736
parent5ed910cd32b0148b086ba4102a082aadb5e283bc (diff)
downloadpython-swiftclient-7a13754eebb15a3c7fa507ad1d58e3c4460e302c.tar.gz
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
-rw-r--r--swiftclient/client.py2
1 files changed, 1 insertions, 1 deletions
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: