Use keystone discovery instead of endpoint_override
Since the version information is now provided by the barbican server, there is no need for using an endpoint_override for the client as used to be the case. Now we can rely on keystone to fill this information for us. Change-Id: Ia9adb8a0729c26452162eca4f9aa43d3a5c7591b
This commit is contained in:
@@ -43,13 +43,8 @@ class _HTTPClient(adapter.Adapter):
|
||||
|
||||
super(_HTTPClient, self).__init__(session, **kwargs)
|
||||
|
||||
if not endpoint:
|
||||
endpoint = self.get_endpoint()
|
||||
# NOTE(jaosorior): We are manually appending the given version. This
|
||||
# could be filled automatically by keystoneclient; but
|
||||
# we need the fix-version-api blueprint to land in the
|
||||
# server first.
|
||||
self.endpoint_override = '{0}/{1}'.format(endpoint, self.version)
|
||||
if endpoint:
|
||||
self.endpoint_override = '{0}/{1}'.format(endpoint, self.version)
|
||||
|
||||
if project_id is None:
|
||||
self._default_headers = dict()
|
||||
|
||||
Reference in New Issue
Block a user