Fix url parsing for api version check
This commit fixes a couple of oversights in the common api version
check function. The previous version of the method would never work
because the url wasn't passed to urlparse, and the resulting endpoint
url would be missing a ':' even if it were.
Change-Id: I4b6bb47f0601063aa8164ded386ca71adc6ccc80
diff --git a/tools/verify_tempest_config.py b/tools/verify_tempest_config.py
index 30785c4..db29da5 100755
--- a/tools/verify_tempest_config.py
+++ b/tools/verify_tempest_config.py
@@ -46,8 +46,8 @@
'keystone': os.identity_client,
}
client_dict[service].skip_path()
- endpoint_parts = urlparse.urlparse(client_dict[service])
- endpoint = endpoint_parts.scheme + '//' + endpoint_parts.netloc
+ endpoint_parts = urlparse.urlparse(client_dict[service].base_url)
+ endpoint = endpoint_parts.scheme + '://' + endpoint_parts.netloc
__, body = RAW_HTTP.request(endpoint, 'GET')
client_dict[service].reset_path()
body = json.loads(body)