]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Volume extend error does not catch exception
authorZhang Jinnan <zhang.jinnan@99cloud.net>
Fri, 25 Sep 2015 16:51:00 +0000 (00:51 +0800)
committerZhang Jinnan <zhang.jinnan@99cloud.net>
Mon, 12 Oct 2015 11:36:25 +0000 (19:36 +0800)
commit3a21e5d31e94b2cbb9d1f581347bacf41afdef7e
tree0d81ecdf37f2c3a732b53db5af8450c34d7647ea
parent3b0fcc3e758b6763d93aa2cea40aa46748201e99
Volume extend error does not catch exception

Volume extension API does not throw HTTPBadRequest response,
when input to the API is invalid.
This patch handles invalid input to the volume extension API
and return HTTPBadRequest.

APIImpact
Change-Id: I93e81514c9c1bea9fa80cfb14c5f1d4b00dd0c28
cinder/api/contrib/volume_actions.py
cinder/tests/unit/api/contrib/test_volume_actions.py