]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Incorrect exception caught in qos-specs create api
authorRajesh Tailor <rajesh.tailor@nttdata.com>
Wed, 17 Jun 2015 11:35:35 +0000 (04:35 -0700)
committerRajesh Tailor <rajesh.tailor@nttdata.com>
Thu, 18 Jun 2015 13:12:57 +0000 (06:12 -0700)
commit40bf16c8c90051903b3f662996fd0a15b90fd2bc
treefaee6613454af7364b921f879e579fd1c975e426
parentde42caeb2e3f90e7ab80e9a5a41e85c1be17888a
Incorrect exception caught in qos-specs create api

Caught InvalidQoSSpecs exception instead of InvalidInput exception
in qos-specs create api, as _verify_prepare_qos_specs method raises
InvalidQoSSpecs exception if invalid value is passed.

Closes-Bug: 1466065
Change-Id: Idb7b4e6c9e323c2ca732a27a8e3286a1fa00c1f8
cinder/api/contrib/qos_specs_manage.py
cinder/tests/unit/api/contrib/test_qos_specs_manage.py