From d96e0c45011fcb7d77c7c6dd4642f6bf7337e243 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Wed, 23 Aug 2023 22:14:02 +0000 Subject: [PATCH] TrivialFix: Don't warn on legitimate all_projects usage Change-Id: Ida58aeb6825d0e317358ba6faa21f2f656ed202e --- manila/lock/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manila/lock/api.py b/manila/lock/api.py index 387c199d2c..fdb22feaed 100644 --- a/manila/lock/api.py +++ b/manila/lock/api.py @@ -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)