]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Raise BadRequest for invalid replication status
authorVipin Balachandran <vbala@vmware.com>
Wed, 1 Jul 2015 06:50:37 +0000 (12:20 +0530)
committerVipin Balachandran <vbala@vmware.com>
Wed, 15 Jul 2015 09:51:57 +0000 (15:21 +0530)
commit525e27331d08b484a8f673ff4ff5efc3e00d8ce9
tree1d3a23a8944f035bba9ef4e4835f3331eac12adf
parent348b06adad2ada45d6d9d12fb004a6329e3bb8bf
Raise BadRequest for invalid replication status

Raise HTTPBadRequest instead of HTTPNotFound while creating
a volume from an existing source replica with invalid replication
status 'disabled'.

APIImpact

Change-Id: If7ac01a9452dca0446088189b658340da538c427
Closes-Bug: #1471694
cinder/api/v2/volumes.py
cinder/tests/unit/api/v2/test_volumes.py