diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-07-12 20:09:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 20:09:26 +0100 |
commit | 03785776bad26d2c220407db18ceda70fd8448a2 (patch) | |
tree | 9998aa1d5665e1b0e8fbbf2f72dafbca96bed545 /python/vyos/utils | |
parent | 64360db360a36f45083a1ff6a5d5245e192ab165 (diff) | |
parent | 4c4a2ddd4cc0ac2dc6e3908c1480c017e9dab3e5 (diff) | |
download | vyos-1x-03785776bad26d2c220407db18ceda70fd8448a2.tar.gz vyos-1x-03785776bad26d2c220407db18ceda70fd8448a2.zip |
Merge pull request #2079 from jestabro/from-defaults
config: T5330: add boolean check for additions by default in config dict
Diffstat (limited to 'python/vyos/utils')
-rw-r--r-- | python/vyos/utils/dict.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/dict.py b/python/vyos/utils/dict.py index 28d32bb8d..66fe6dad3 100644 --- a/python/vyos/utils/dict.py +++ b/python/vyos/utils/dict.py @@ -87,7 +87,7 @@ def mangle_dict_keys(data, regex, replacement, abs_path=None, no_tag_node_value_ if abs_path is None: abs_path = [] - new_dict = {} + new_dict = type(data)() for k in data.keys(): if no_tag_node_value_mangle and is_tag_value(abs_path + [k]): |