diff options
author | Vasyl Saienko <vsaienko@mirantis.com> | 2016-05-27 11:25:01 +0300 |
---|---|---|
committer | Vasyl Saienko <vsaienko@mirantis.com> | 2016-05-27 11:58:25 +0300 |
commit | fae3493ed1ac9071f5793da4c8ecb7ee9cb15bd8 (patch) | |
tree | 1892a88df4a84e490acd96b35075eee1ab4473fb /ironic_tempest_plugin/services | |
parent | 0b42710923d5aae02a93a7a9ba6d2506434b47c6 (diff) | |
download | ironic-fae3493ed1ac9071f5793da4c8ecb7ee9cb15bd8.tar.gz |
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] https://github.com/openstack/tempest/commit/4408c4a5fe5a862a7e05d0df8b7990fd1c6053e1
Change-Id: I09ada4fc12b58aaa9df4bb248a866999c681d822
Closes-Bug: #1586299
Diffstat (limited to 'ironic_tempest_plugin/services')
-rw-r--r-- | ironic_tempest_plugin/services/baremetal/base.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ironic_tempest_plugin/services/baremetal/base.py b/ironic_tempest_plugin/services/baremetal/base.py index b7a9c3291..368df471b 100644 --- a/ironic_tempest_plugin/services/baremetal/base.py +++ b/ironic_tempest_plugin/services/baremetal/base.py @@ -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( |