summaryrefslogtreecommitdiff
path: root/openstack_auth
diff options
context:
space:
mode:
authorjichenjc <jichenjc@cn.ibm.com>2016-09-06 20:00:26 +0800
committerjichenjc <jichenjc@cn.ibm.com>2016-09-06 20:02:58 +0800
commitcec7a021707972b1434bc1be656c5ff1d1315b55 (patch)
treebff2ead1a07dd349480f90913799161f5b41e21b /openstack_auth
parentc917e4b7593fe88bfef405bebe9484afea6551d0 (diff)
downloaddjango_openstack_auth-cec7a021707972b1434bc1be656c5ff1d1315b55.tar.gz
Fix wrong warning about keystone version
The variable should be an array but we used string, so it lead to incorrect warning in the httpd log. Change-Id: I7a233338306e51ba11f2d80acfc758700f6bddd2 Closes-Bug: 1621137
Diffstat (limited to 'openstack_auth')
-rw-r--r--openstack_auth/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_auth/utils.py b/openstack_auth/utils.py
index eca6389..44b3931 100644
--- a/openstack_auth/utils.py
+++ b/openstack_auth/utils.py
@@ -294,7 +294,7 @@ def fix_auth_url_version(auth_url):
"""
auth_url = _augment_url_with_version(auth_url)
- if get_keystone_version() >= 3 and has_in_url_path(auth_url, "/v2.0"):
+ if get_keystone_version() >= 3 and has_in_url_path(auth_url, ["/v2.0"]):
LOG.warning("The Keystone URL (either in Horizon settings or in "
"service catalog) points to a v2.0 Keystone endpoint, "
"but v3 is specified as the API version to use by "