Merge "Remove unneeded volume_types.get_all_types_by_group method"

This commit is contained in:
Zuul 2022-05-02 07:33:38 +00:00 committed by Gerrit Code Review
commit e666bbb8fc
2 changed files with 1 additions and 7 deletions

View File

@ -184,7 +184,7 @@ class VolumeTypeList(base.ObjectListBase, base.CinderObject):
@classmethod
def get_all_by_group(cls, context, group_id):
# Generic volume group
types = volume_types.get_all_types_by_group(
types = db.volume_type_get_all_by_group(
context.elevated(), group_id)
expected_attrs = VolumeType._get_expected_attrs(context)
return base.obj_make_list(context, cls(context),

View File

@ -159,12 +159,6 @@ def get_all_types(context, inactive=0, filters=None, marker=None,
return vol_types
def get_all_types_by_group(context, group_id):
"""Get all volume_types in a group."""
vol_types = db.volume_type_get_all_by_group(context, group_id)
return vol_types
def get_volume_type(ctxt, id, expected_fields=None):
"""Retrieves single volume type by id."""
if id is None: