Merge "object_storage/object_client.py: kill some dead code"

This commit is contained in:
Jenkins 2016-04-30 19:12:34 +00:00 committed by Gerrit Code Review
commit 9aec598403

View File

@ -150,9 +150,6 @@ class ObjectClient(rest_client.RestClient):
def put_object_with_chunk(self, container, name, contents, chunk_size):
"""Put an object with Transfer-Encoding header"""
if self.base_url is None:
self._set_auth()
headers = {'Transfer-Encoding': 'chunked'}
if self.token:
headers['X-Auth-Token'] = self.token
@ -182,8 +179,6 @@ class ObjectClient(rest_client.RestClient):
if not data:
headers['content-length'] = '0'
if self.base_url is None:
self._set_auth()
headers['X-Auth-Token'] = self.token
conn = put_object_connection(self.base_url, str(container),