None response to PUT is not handled properly

Bug #1736236 reported by Bar Elharar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

Using OSC_LIB.api.BaseAPI().create(SOME_URL, method='PUT'), will raise a TypeError when None is returned.
In some cases, None response to PUT request is a valid response. e.g. In Octavia API the failover is deferred action, with response code of 202, and response body None. This API call is yet to be merged into the Octavia-client.

I believe the bug originates in CLIFF which tries to unpack None.
Here is a debug log: http://paste.openstack.org/show/628119/

Revision history for this message
Bar Elharar (elhararb) wrote :

Eventually, I managed to avoid that by inheriting from osc_lib.command.command.Command instead of ShowOne.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.