object_storage/object_client.py: kill some dead code
Remove calls to the method `_set_auth()`. The method definition has been removed from Tempest a couple of *years* ago. Dynamic languages are great ! Change-Id: I0f459002c1aa5ab35952f624de814ac5f69d30b2
This commit is contained in:
parent
d9f3c267d2
commit
6bf7de8afc
@ -150,9 +150,6 @@ class ObjectClient(rest_client.RestClient):
|
|||||||
|
|
||||||
def put_object_with_chunk(self, container, name, contents, chunk_size):
|
def put_object_with_chunk(self, container, name, contents, chunk_size):
|
||||||
"""Put an object with Transfer-Encoding header"""
|
"""Put an object with Transfer-Encoding header"""
|
||||||
if self.base_url is None:
|
|
||||||
self._set_auth()
|
|
||||||
|
|
||||||
headers = {'Transfer-Encoding': 'chunked'}
|
headers = {'Transfer-Encoding': 'chunked'}
|
||||||
if self.token:
|
if self.token:
|
||||||
headers['X-Auth-Token'] = self.token
|
headers['X-Auth-Token'] = self.token
|
||||||
@ -182,8 +179,6 @@ class ObjectClient(rest_client.RestClient):
|
|||||||
if not data:
|
if not data:
|
||||||
headers['content-length'] = '0'
|
headers['content-length'] = '0'
|
||||||
|
|
||||||
if self.base_url is None:
|
|
||||||
self._set_auth()
|
|
||||||
headers['X-Auth-Token'] = self.token
|
headers['X-Auth-Token'] = self.token
|
||||||
|
|
||||||
conn = put_object_connection(self.base_url, str(container),
|
conn = put_object_connection(self.base_url, str(container),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user