Beispiel #1
0
 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)
Beispiel #2
0
 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)