mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
Correct mistake with refactoring JSON calls
The arguments were incorrect. Change-Id: If1738c6d877b72bf71b28a643042ad3542de9866
This commit is contained in:
parent
1dc3844ea8
commit
871316c967
@ -162,7 +162,7 @@ class SecureHTTPConnection(httplib.HTTPConnection, object):
|
||||
|
||||
def grab_json_response(self, url, data=None, referer=None, headers=None):
|
||||
self.lastjsonerror = None
|
||||
body, status = self.grab_json_response_with_status(self, url, data, referer, headers)
|
||||
body, status = self.grab_json_response_with_status(url, data, referer, headers)
|
||||
if status == 200:
|
||||
return body
|
||||
self.lastjsonerror = body
|
||||
|
Loading…
x
Reference in New Issue
Block a user