From cec7a021707972b1434bc1be656c5ff1d1315b55 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Tue, 6 Sep 2016 20:00:26 +0800 Subject: [PATCH] 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 --- openstack_auth/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "