Can't set headers when using the list resource api in Neutron Client
Bug #1731597 reported by
Lyman Xu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Slawek Kaplonski |
Bug Description
In neutronclient/
def list(self, collection, path, retrieve_all=True, **params):
this list method will call
def _pagination(self, collection, path, **params):
this _pagination method will call
def get(self, action, body=None, headers=None, params=None):
We can see that we can set headers when using get(). But in list(),
the headers. In order to list the resource, I used the api of list(). But when I call the api of list, I can't set headers.
Best regards:-)
Changed in neutron: | |
assignee: | nobody → Slawek Kaplonski (slaweq) |
To post a comment you must log in.
By the way, you need to pay attention to here:) v2_0/client. py
neutronclient/
line: 270
def do_request(self, method, action, body=None, headers=None, params=None):
will call line: 280 .do_request( action, method, body=body)
resp, replybody = self.httpclient
ignore headers