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:
parent
0b42710923
commit
fae3493ed1
@ -53,10 +53,8 @@ class BaremetalClient(rest_client.RestClient):
|
||||
headers[self.api_microversion_header_name] = BAREMETAL_MICROVERSION
|
||||
return headers
|
||||
|
||||
def request(self, method, url, extra_headers=False, headers=None,
|
||||
body=None):
|
||||
resp, resp_body = super(BaremetalClient, self).request(
|
||||
method, url, extra_headers, headers, body)
|
||||
def request(self, *args, **kwargs):
|
||||
resp, resp_body = super(BaremetalClient, self).request(*args, **kwargs)
|
||||
if (BAREMETAL_MICROVERSION and
|
||||
BAREMETAL_MICROVERSION != api_version_utils.LATEST_MICROVERSION):
|
||||
api_version_utils.assert_version_header_matches_request(
|
||||
|
Loading…
Reference in New Issue
Block a user