diff options
Diffstat (limited to 'openstack_auth/utils.py')
-rw-r--r-- | openstack_auth/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_auth/utils.py b/openstack_auth/utils.py index 5abcbac..95e007c 100644 --- a/openstack_auth/utils.py +++ b/openstack_auth/utils.py @@ -264,7 +264,7 @@ def fix_auth_url_version(auth_url): # Check for empty path component in endpoint URL and add keystone version # to endpoint: as of Kilo, the identity URLs returned by Keystone might no # longer contain API versions, leaving the version choice up to the user. - if urlparse.urlparse(auth_url)[3] == '': + if urlparse.urlparse(auth_url).path.rstrip('/') == '': if get_keystone_version() >= 3: auth_url = urlparse.urljoin(auth_url, 'v3') else: |