]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Return 404 if volume type encryption is not found
authorRakesh H S <rh-s@hp.com>
Tue, 23 Jun 2015 14:06:24 +0000 (19:36 +0530)
committerRakesh H S <rh-s@hp.com>
Wed, 1 Jul 2015 02:51:18 +0000 (08:21 +0530)
commit41646ab48be69f01afa943190d6fc41234c78976
tree077173296c36b9e823e69acf0014e75ef2335cc7
parent0330f251ce87e2dce4c8535780e87adb1a47c0eb
Return 404 if volume type encryption is not found

This commit adds a check for volume type encryption existence before
marking it as deleted. If it isn't present call returns 404 error
code so that it can be handled properly in services that use the
REST API (like Heat).

APIImpact
HTTP 404 will be returned if volume type encryption is not found.

Change-Id: I3107b8df0121de1ebe9e812ef7a842d09500e030
Closes-Bug: #1468751
cinder/api/contrib/volume_type_encryption.py
cinder/db/sqlalchemy/api.py
cinder/tests/unit/api/contrib/test_volume_type_encryption.py
cinder/tests/unit/test_db_api.py