Issue is that it assumes a python-requests response class but it might be a HTTPResponse. We should assume using the body unless it's a requests response.
return self._update(self._path(id), patch)
File "/usr/lib/python2.7/site-packages/magnumclient/common/base.py", line 131, in _update
resp, resp_body = self.api.json_request(method, url, body=body)
File "/usr/lib/python2.7/site-packages/magnumclient/common/httpclient.py", line 233, in json_request
resp, body_iter = self._http_request(url, method, **kwargs)
File "/usr/lib/python2.7/site-packages/magnumclient/common/httpclient.py", line 213, in _http_request
error_json = _extract_error_json(body_str, resp)
File "/usr/lib/python2.7/site-packages/magnumclient/common/httpclient.py", line 66, in _extract_error_json
body_json = resp.json()
AttributeError: HTTPResponse instance has no attribute 'json'
Issue is that it assumes a python-requests response class but it might be a HTTPResponse. We should assume using the body unless it's a requests response.
return self._update( self._path( id), patch) python2. 7/site- packages/ magnumclient/ common/ base.py" , line 131, in _update json_request( method, url, body=body) python2. 7/site- packages/ magnumclient/ common/ httpclient. py", line 233, in json_request request( url, method, **kwargs) python2. 7/site- packages/ magnumclient/ common/ httpclient. py", line 213, in _http_request error_json( body_str, resp) python2. 7/site- packages/ magnumclient/ common/ httpclient. py", line 66, in _extract_error_json
File "/usr/lib/
resp, resp_body = self.api.
File "/usr/lib/
resp, body_iter = self._http_
File "/usr/lib/
error_json = _extract_
File "/usr/lib/
body_json = resp.json()
AttributeError: HTTPResponse instance has no attribute 'json'