summaryrefslogtreecommitdiff
path: root/nova/policy.py
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-05-18 16:56:35 +0100
committerStephen Finucane <stephenfin@redhat.com>2020-05-18 17:00:41 +0100
commit3a28b0e7717145bfb336138fb74a015913195725 (patch)
tree3a211c1d29dae0017fcf0c4610f8519ccf268e31 /nova/policy.py
parenteee57f2380518131338dbff3d63803e15b68e7fa (diff)
downloadnova-3a28b0e7717145bfb336138fb74a015913195725.tar.gz
trivial: Remove remaining '_LW' instances
There are only a few of these remaining in the code base. Remove them. Change-Id: I33725e2439b0f39c1e9bec9e33a37bf3e24944fb Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/policy.py')
-rw-r--r--nova/policy.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nova/policy.py b/nova/policy.py
index 05d35e6204..ad1b79c542 100644
--- a/nova/policy.py
+++ b/nova/policy.py
@@ -24,7 +24,6 @@ from oslo_utils import excutils
from nova import exception
-from nova.i18n import _LW
from nova import policies
@@ -115,10 +114,12 @@ def _warning_for_deprecated_user_based_rules(rules):
if resource in rule[0]]:
continue
if 'user_id' in KEY_EXPR.findall(rule[1]):
- LOG.warning(_LW("The user_id attribute isn't supported in the "
- "rule '%s'. All the user_id based policy "
- "enforcement will be removed in the "
- "future."), rule[0])
+ LOG.warning(
+ "The user_id attribute isn't supported in the rule '%s'. "
+ "All the user_id based policy enforcement will be removed in "
+ "the future.",
+ rule[0]
+ )
def set_rules(rules, overwrite=True, use_conf=False):