Code clean-up in client.py
Removing duplicate code from client.py Change-Id: I408915211e005488c8cb08acbd32fdd0501d8c7a
This commit is contained in:
parent
633848c21a
commit
9c5461b1dd
@ -171,8 +171,6 @@ class HTTPClient(object):
|
|||||||
return resp, body
|
return resp, body
|
||||||
except exceptions.Unauthorized:
|
except exceptions.Unauthorized:
|
||||||
self.authenticate()
|
self.authenticate()
|
||||||
kwargs.setdefault('headers', {})
|
|
||||||
kwargs['headers']['X-Auth-Token'] = self.auth_token
|
|
||||||
resp, body = self._cs_request(
|
resp, body = self._cs_request(
|
||||||
self.endpoint_url + url, method, **kwargs)
|
self.endpoint_url + url, method, **kwargs)
|
||||||
return resp, body
|
return resp, body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user