cinder group-type-update will set is_public to false if not given

Bug #1995927 reported by wanghelin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
In Progress
Low
wanghelin

Bug Description

When using cinder group-type-update to update group type name, descriptioin or is_public,if is_public is not given (None will be assigned), it will be set to False by error. For example command like 'cinder group-type-update 1234' will update is_public to false but not return an error.

This is caused by calling bool_from_string() without checking whether argument 'is_public' is None. This function will first convert None to string 'None', which is an unknown argument, so bool_from_string() will return default value 'False' by error.

Tags: api
wanghelin (wanghelin)
Changed in python-cinderclient:
assignee: nobody → wanghelin (wanghelin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)
Changed in python-cinderclient:
status: New → In Progress
Changed in python-cinderclient:
importance: Undecided → Low
tags: added: api
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.