def _return_servers_objs(context, search_opts=None, limit=None, marker=None, want_objects=False, expected_attrs=None, sort_keys=None, sort_dirs=None):
    db_insts = fake_instance_get_all_by_filters()(None, limit=limit, marker=marker)
    expected = ['metadata', 'system_metadata', 'flavor', 'info_cache', 'security_groups']
    return base.obj_make_list(context, objects.InstanceList(), objects.Instance, db_insts, expected_attrs=expected)
def _return_servers_objs(context, search_opts=None, limit=None, marker=None, want_objects=False, expected_attrs=None, sort_keys=None, sort_dirs=None):
    db_insts = fake_instance_get_all_by_filters()(None, limit=limit, marker=marker)
    expected = ['metadata', 'system_metadata', 'flavor', 'info_cache', 'security_groups']
    return base.obj_make_list(context, objects.InstanceList(), objects.Instance, db_insts, expected_attrs=expected)