Merge "db: Don't invoke and_() without arguments"
This commit is contained in:
commit
d001291007
|
@ -565,7 +565,7 @@ def _select_images_query(context, image_conditions, admin_as_user,
|
|||
member_status, visibility):
|
||||
session = get_session()
|
||||
|
||||
img_conditional_clause = sa_sql.and_(*image_conditions)
|
||||
img_conditional_clause = sa_sql.and_(True, *image_conditions)
|
||||
|
||||
regular_user = (not context.is_admin) or admin_as_user
|
||||
|
||||
|
|
|
@ -178,13 +178,6 @@ class WarningsFixture(pyfixtures.Fixture):
|
|||
# ...but filter everything out until we get around to fixing them
|
||||
# TODO(stephenfin): Fix all of these
|
||||
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
module='glance',
|
||||
category=sqla_exc.SADeprecationWarning,
|
||||
message=r'Invoking and_\(\) without arguments is deprecated',
|
||||
)
|
||||
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
module='glance',
|
||||
|
|
Loading…
Reference in New Issue