build the query with the query builder
This commit is contained in:
parent
bb0a999ecc
commit
f12926ab7e
@ -1297,9 +1297,9 @@ def instance_get_all_by_filters(context, filters, instance_uuids=None):
|
||||
if not uuids:
|
||||
return []
|
||||
|
||||
instances = session.query(models.Instance).\
|
||||
filter(models.Instance.uuid.in_(uuids)).\
|
||||
all()
|
||||
instances = _build_instance_get(context, session=session).\
|
||||
filter(models.Instance.uuid.in_(uuids)).\
|
||||
all()
|
||||
|
||||
# Now filter on everything else for regexp matching..
|
||||
# For filters not in the list, we'll attempt to use the filter_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user