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