]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Raise HTTP exception for backup not found
authorVipin Balachandran <vbala@vmware.com>
Wed, 15 Jul 2015 08:51:46 +0000 (14:21 +0530)
committerVipin Balachandran <vbala@vmware.com>
Wed, 15 Jul 2015 08:51:46 +0000 (14:21 +0530)
commitb5e84020ae39222f3e155a176157f6f7f3901144
treec7cc061c61488da02ff617e3ffb460915c55299c
parentdb0cca532b774970b2fa15776ab935b276c40838
Raise HTTP exception for backup not found

If backup cannot be found while resetting its status, Cinder
exception (BackupNotFound) is raised instead of HTTP exception.
This patch handles the BackupNotFound exception and raises
HTTPNotFound exception.

APIImpact
HTTPNotFound exception (404) is raised instead of BackupNotFound
if backup cannot be found during backup reset-status.

Change-Id: I5a41c71a83c05d09c6d1e2e506adca6cfbe3e890
Closes-Bug: #1474748
cinder/api/contrib/admin_actions.py
cinder/tests/unit/api/contrib/test_admin_actions.py