Set correctly content_type and accept fields of the list_resources request
Closes-Bug: 175409 Change-Id: I977f97cd0692a86bac1d817fa1c4de27889f2675
This commit is contained in:
parent
9ab7f8299b
commit
274cc900b1
|
@ -85,6 +85,9 @@ class OpenStackNeutron(helpers.BaseHelper):
|
|||
:param tenant: include tenant in the query parameters
|
||||
"""
|
||||
path = "/%s" % resource
|
||||
# Fix bug 1754096
|
||||
req.accept = "application/json"
|
||||
req.content_type = "application/json"
|
||||
os_req = self._make_get_request(req, path, parameters)
|
||||
response = os_req.get_response()
|
||||
return self.get_from_response(response, resource, [])
|
||||
|
|
Loading…
Reference in New Issue