]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove unnecessary checks for encrypted types
authorJoel Coffman <joel.coffman@jhuapl.edu>
Thu, 26 Mar 2015 22:33:40 +0000 (18:33 -0400)
committerJoel Coffman <joel.coffman@jhuapl.edu>
Fri, 24 Apr 2015 16:58:32 +0000 (12:58 -0400)
commita669555f14f11c7fe380a1de2bef9fdca05a104c
tree1c28b6490ef7bf9473af524097f1933641cf7b42
parenta92170c3ea25367fa7ca27f048722ba32d823697
Remove unnecessary checks for encrypted types

Change I6ba62a58ac62a3b7bfb2b9d4d18b37ef458b616c makes it unnecessary
to explicitly check that a volume is encrypted prior to invoking the
volume_encryption_metadata_get function. This change cleans up the
single existing invocation of that function in the API contrib
modules. The unit tests are also updated to reflect this change.

Change-Id: I3b8aef67bd6e70f570a39c90175ae6ceaedc4386
cinder/api/contrib/volume_encryption_metadata.py
cinder/tests/unit/api/contrib/test_volume_encryption_metadata.py