Fix signature for request method

New param was introduced to request method by [0]
It leads to broken jobs, because ironic redefines this method.
Replace arguments by *args, **kwargs to do not depend on signature.

Reference:
[0] 4408c4a5fe

Change-Id: I09ada4fc12b58aaa9df4bb248a866999c681d822
Closes-Bug: #1586299
This commit is contained in:
Vasyl Saienko 2016-05-27 11:25:01 +03:00
parent 0b42710923
commit fae3493ed1

View File

@ -53,10 +53,8 @@ class BaremetalClient(rest_client.RestClient):
headers[self.api_microversion_header_name] = BAREMETAL_MICROVERSION headers[self.api_microversion_header_name] = BAREMETAL_MICROVERSION
return headers return headers
def request(self, method, url, extra_headers=False, headers=None, def request(self, *args, **kwargs):
body=None): resp, resp_body = super(BaremetalClient, self).request(*args, **kwargs)
resp, resp_body = super(BaremetalClient, self).request(
method, url, extra_headers, headers, body)
if (BAREMETAL_MICROVERSION and if (BAREMETAL_MICROVERSION and
BAREMETAL_MICROVERSION != api_version_utils.LATEST_MICROVERSION): BAREMETAL_MICROVERSION != api_version_utils.LATEST_MICROVERSION):
api_version_utils.assert_version_header_matches_request( api_version_utils.assert_version_header_matches_request(