]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enforce exclusive options snapshot-id, source-volid and image-id
authorStephen Mulcahy <stephen.mulcahy@hp.com>
Thu, 28 Mar 2013 15:46:16 +0000 (15:46 +0000)
committerStephen Mulcahy <stephen.mulcahy@hp.com>
Thu, 28 Mar 2013 18:28:25 +0000 (18:28 +0000)
commita4540aae666347c1a7e6f17330232a5d33cc4893
treee45c7f9fe2533ff5f8cc5bd5d801a19433961534
parent4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4
Enforce exclusive options snapshot-id, source-volid and image-id

Fixed checks in api that volume create receives only one of
snapshot-id, source-volid or image-id.

Fixes bug #1161437

Change-Id: Ibe5ca4bb81e69b0f8e1abe1c2cffe587dc10e3ca
cinder/api/v1/volumes.py
cinder/api/v2/volumes.py
cinder/tests/api/v1/test_volumes.py
cinder/tests/api/v2/test_volumes.py
cinder/tests/test_volume.py
cinder/volume/api.py