diff --git a/cinder/objects/volume_type.py b/cinder/objects/volume_type.py index ff7a127d5e8..c784ef456cf 100644 --- a/cinder/objects/volume_type.py +++ b/cinder/objects/volume_type.py @@ -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), diff --git a/cinder/volume/volume_types.py b/cinder/volume/volume_types.py index a191db2db1e..f4846e02c3b 100644 --- a/cinder/volume/volume_types.py +++ b/cinder/volume/volume_types.py @@ -158,12 +158,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: