Merge "Code clean-up in client.py"

This commit is contained in:
Jenkins 2016-03-11 16:25:56 +00:00 committed by Gerrit Code Review
commit a0bf314c0e

View File

@ -171,8 +171,6 @@ class HTTPClient(object):
return resp, body
except exceptions.Unauthorized:
self.authenticate()
kwargs.setdefault('headers', {})
kwargs['headers']['X-Auth-Token'] = self.auth_token
resp, body = self._cs_request(
self.endpoint_url + url, method, **kwargs)
return resp, body