]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
add 'force' verification in _volume_upload_image
authorling-yun <zengyunling@huawei.com>
Fri, 3 Jan 2014 07:56:05 +0000 (15:56 +0800)
committerling-yun <zengyunling@huawei.com>
Fri, 3 Jan 2014 07:56:05 +0000 (15:56 +0800)
commit04e333f78ec8f22cdc0f0ab8701ae6a277bacbd5
treee61a8b0a7d56639e0e97d8666e340e67711f5979
parentbb52be971deea9e2374b5cef1b1f208e4354276e
add 'force' verification in _volume_upload_image

_volume_upload_image API should only support to upload 'in-use' volume to
image when assign 'force' parameter as true value. Now
_volume_upload_image API does not do verification for 'force' parameter,
so we can upload 'in-use' volume to image when assign 'force' parameter
with string value 'false' or 'false111'. This patch add verification for
'force' parameter.

Change-Id: I9e1d0e517d0ff97c136903dd6e50a305e18651f3
Closes-Bug: #1265718
cinder/api/contrib/volume_actions.py