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:
Juan Antonio Osorio Robles
2015-06-25 11:44:13 +03:00
parent 42a3c4b0d9
commit 8cebffdffb

View File

@@ -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()