summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-08 22:53:30 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-08 22:53:30 +0200
commit4cdb1f8b25f46297cb286923e9e9116964189a31 (patch)
tree0f89437224e7cb2584b2cea28841534c719b16cc
parent1d9cf31e849b862063200309734bab6620f57f1d (diff)
downloadvyos-1x-4cdb1f8b25f46297cb286923e9e9116964189a31.tar.gz
vyos-1x-4cdb1f8b25f46297cb286923e9e9116964189a31.zip
policy: T2425: bugfix NameError: name 'name' is not defined
-rwxr-xr-xsrc/conf_mode/policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/policy.py b/src/conf_mode/policy.py
index fb732dd81..d56bae9e9 100755
--- a/src/conf_mode/policy.py
+++ b/src/conf_mode/policy.py
@@ -165,7 +165,7 @@ def verify(policy):
found = True
if not found:
tmp = policy_type.replace('_','-')
- raise ConfigError(f'Can not delete {tmp} "{name}", still in use!')
+ raise ConfigError(f'Can not delete {tmp} "{policy_name}", still in use!')
return None