Esempio n. 1
0
 def get_all_for_group_snapshot(cls, context, group_snapshot_id):
     snapshots = db.snapshot_get_all_for_group_snapshot(
         context, group_snapshot_id)
     expected_attrs = Snapshot._get_expected_attrs(context)
     return base.obj_make_list(context,
                               cls(context),
                               objects.Snapshot,
                               snapshots,
                               expected_attrs=expected_attrs)
Esempio n. 2
0
 def get_all_for_group_snapshot(cls, context, group_snapshot_id):
     snapshots = db.snapshot_get_all_for_group_snapshot(
         context, group_snapshot_id)
     expected_attrs = Snapshot._get_expected_attrs(context)
     return base.obj_make_list(context, cls(context), objects.Snapshot,
                               snapshots, expected_attrs=expected_attrs)