

@classmethod
@db.select_db_reader_mode
def _get_by_filters_impl(cls, context, filters, sort_key='created_at', sort_dir='desc', limit=None, marker=None, expected_attrs=None, use_slave=False, sort_keys=None, sort_dirs=None):
    if (sort_keys or sort_dirs):
        db_inst_list = db.instance_get_all_by_filters_sort(context, filters, limit=limit, marker=marker, columns_to_join=_expected_cols(expected_attrs), sort_keys=sort_keys, sort_dirs=sort_dirs)
    else:
        db_inst_list = db.instance_get_all_by_filters(context, filters, sort_key, sort_dir, limit=limit, marker=marker, columns_to_join=_expected_cols(expected_attrs))
    return _make_instance_list(context, cls(), db_inst_list, expected_attrs)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py InstanceList._get_by_filters_impl/original