]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Correct comment to be consistent with code
authorJoel Coffman <joel.coffman@jhuapl.edu>
Tue, 4 Aug 2015 19:12:22 +0000 (15:12 -0400)
committerJoel Coffman <joel.coffman@jhuapl.edu>
Mon, 17 Aug 2015 19:15:06 +0000 (15:15 -0400)
The volume_encryption_metadata_get function returns more than just
the encryption key id. This change generalizes the comment to refer
to all the metadata that is returned.

Change-Id: I3f154930cec5f065011b40026d3dbdb3a8a2f07d

cinder/db/sqlalchemy/api.py

index 6c49352d365f12c86796a52ac77303503226651c..45278a8349088834ba8cc9604f4774330bbef86f 100644 (file)
@@ -3049,7 +3049,7 @@ def volume_type_encryption_volume_get(context, volume_type_id, session=None):
 
 @require_context
 def volume_encryption_metadata_get(context, volume_id, session=None):
-    """Return the encryption key id for a given volume."""
+    """Return the encryption metadata for a given volume."""
 
     volume_ref = _volume_get(context, volume_id)
     encryption_ref = volume_type_encryption_get(context,