Merge "Remove extra volume_type DB fetch on volume manage"
This commit is contained in:
commit
44bdc5d071
|
@ -2004,8 +2004,7 @@ class API(base.Base):
|
||||||
raise
|
raise
|
||||||
is_encrypted = False
|
is_encrypted = False
|
||||||
if volume_type:
|
if volume_type:
|
||||||
is_encrypted = volume_types.is_encrypted(context,
|
is_encrypted = self._is_encrypted(volume_type)
|
||||||
volume_type['id'])
|
|
||||||
if is_encrypted:
|
if is_encrypted:
|
||||||
msg = _("Managing to an encrypted volume type is not supported.")
|
msg = _("Managing to an encrypted volume type is not supported.")
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
|
|
Loading…
Reference in New Issue