Merge "Remove extra volume_type DB fetch on volume manage"

This commit is contained in:
Zuul 2022-05-27 17:47:06 +00:00 committed by Gerrit Code Review
commit 44bdc5d071
1 changed files with 1 additions and 2 deletions

View File

@ -2004,8 +2004,7 @@ class API(base.Base):
raise
is_encrypted = False
if volume_type:
is_encrypted = volume_types.is_encrypted(context,
volume_type['id'])
is_encrypted = self._is_encrypted(volume_type)
if is_encrypted:
msg = _("Managing to an encrypted volume type is not supported.")
LOG.error(msg)