summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-18 10:18:12 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-18 11:18:09 +0200
commit0f4e7eccc8abf61d6242c03cb7b160a786ac3593 (patch)
tree3bbd36f194e2efd1facc7c04901c57d233bb456d /src
parentbcabbd4e39f026e46b84ee9a364f15ed6e14a0db (diff)
downloadvyos-1x-0f4e7eccc8abf61d6242c03cb7b160a786ac3593.tar.gz
vyos-1x-0f4e7eccc8abf61d6242c03cb7b160a786ac3593.zip
policy: T2425: to simplify dictionary use get_first_key=True on get_config_dict()
Diffstat (limited to 'src')
-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 ddbb00552..fec9a206e 100755
--- a/src/conf_mode/policy.py
+++ b/src/conf_mode/policy.py
@@ -34,7 +34,7 @@ def get_config(config=None):
conf = Config()
base = ['policy']
- policy = conf.get_config_dict(base, key_mangling=('-', '_'),
+ policy = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=True,
no_tag_node_value_mangle=True)
return policy