]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Validate 'is_public' when creating volume type
authorliyingjun <yingjun.li@kylin-cloud.com>
Wed, 29 Jul 2015 01:42:00 +0000 (09:42 +0800)
committerliyingjun <yingjun.li@kylin-cloud.com>
Mon, 10 Aug 2015 00:51:52 +0000 (08:51 +0800)
commit95233d740aba4a8c8281906f1973978e6873cd1c
treeafc17543a7883c6b7dfbec85b5112b74a8267e70
parentb807ad524a495a222e43c0667b8d0a86387f94cb
Validate 'is_public' when creating volume type

is_public should be checked when creating volume type, otherwise DBError
will be raised in cinder-api, and the user will receive a 500 Internal
server error.

Change-Id: Id0695fbb05613f3655a7af5b5ab10e08ed5e606b
Closes-bug: #1479170
cinder/api/contrib/types_manage.py
cinder/tests/unit/api/contrib/test_types_manage.py