コード例 #1
0
ファイル: snapshot.py プロジェクト: bopopescu/OpenStack-Ocata
 def get_all_active_by_window(cls, context, begin, end):
     snapshots = db.snapshot_get_all_active_by_window(context, begin, end)
     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_active_by_window(cls, context, begin, end):
     snapshots = db.snapshot_get_all_active_by_window(context, begin, end)
     expected_attrs = Snapshot._get_expected_attrs(context)
     return base.obj_make_list(context, cls(context), objects.Snapshot,
                               snapshots, expected_attrs=expected_attrs)