]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Restrict Volume type deletion with volumes assoc
authorSwapnil Kulkarni <swapnilkulkarni2608@gmail.com>
Mon, 2 Sep 2013 16:36:02 +0000 (22:06 +0530)
committerSwapnil Kulkarni <swapnilkulkarni2608@gmail.com>
Mon, 9 Sep 2013 09:01:04 +0000 (14:31 +0530)
commit0278a38153f9649aab1cc641bfabd8d5738d2d8c
tree0eaa936a97438b4edbaf5f564e5ead884bc7c259
parent24cbfb3539c91764f92baa801f7ae1f82dc221d4
Restrict Volume type deletion with volumes assoc

Updated volume_type_destroy method to throw exception
for volume type delete with associated volumes.

Updated volume_type unit tests

Closes-Bug: #1215329

tag:doc-impact

Change-Id: I7a5d4b473588757d21b461337df493e8046e1d09
cinder/api/contrib/types_manage.py
cinder/db/sqlalchemy/api.py
cinder/exception.py
cinder/tests/api/contrib/test_types_manage.py
cinder/tests/test_volume_types.py