]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix updating only volume type is_public
authorliyingjun <liyingjun1988@gmail.com>
Wed, 9 Sep 2015 01:46:21 +0000 (09:46 +0800)
committerJohn Griffith <john.griffith8@gmail.com>
Tue, 13 Oct 2015 18:26:09 +0000 (18:26 +0000)
commitd6a3b481bf767d518d08401384abb7cfa64e50af
treebd913f4c4bf3c0e4c70c9f5765c6e5666f8e3c70
parent7fb767f2d652f070a20fd70d92585d61e56f3a50
Fix updating only volume type is_public

When updating only volume type is_public, error will be raised: `ERROR:
Specify either volume type name and/or description`. Fixed this by
adding a check that is_public is None, the same way name and description
do.

APIImpact
Change-Id: I4b7ece238f76d9acb7f0555c180c6336f6cf1830
Implement blueprint: only-update-volume-type-public
Closes-bug: #1493616
cinder/api/contrib/types_manage.py
cinder/tests/unit/api/contrib/test_types_manage.py