コード例 #1
0
ファイル: snapshot.py プロジェクト: bopopescu/OpenStack-Ocata
 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)
コード例 #2
0
ファイル: snapshot.py プロジェクト: j-griffith/cinder
 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)