diff options
Diffstat (limited to 'barbicanclient/client.py')
-rw-r--r-- | barbicanclient/client.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/barbicanclient/client.py b/barbicanclient/client.py index 7f0a6b2..6e0a47e 100644 --- a/barbicanclient/client.py +++ b/barbicanclient/client.py @@ -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() |