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)