TrivialFix: Don't warn on legitimate all_projects usage

Change-Id: Ida58aeb6825d0e317358ba6faa21f2f656ed202e
This commit is contained in:
Goutham Pacha Ravi 2023-08-23 22:14:02 +00:00
parent f641577d8a
commit d96e0c4501

View File

@ -91,9 +91,9 @@ class API(base.Base):
'get_all_projects',
do_raise=False
)
LOG.warning("User %s not allowed to query locks across "
"all projects.", context.user_id)
if not allow_all_projects:
LOG.warning("User %s not allowed to query locks "
"across all projects.", context.user_id)
search_opts.pop('all_projects')
search_opts.pop('project_id', None)