Merge "Remove unneeded volume_types.get_all_types_by_group method"
This commit is contained in:
commit
e666bbb8fc
|
@ -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),
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue