diff options
author | John Estabrook <jestabro@vyos.io> | 2023-07-04 19:05:26 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-07-07 08:33:51 -0500 |
commit | b5e9b61671d32b3bf540d6ce3638adf33adbd4c7 (patch) | |
tree | df4a548676555663f3752815e2e42e2183d8cf87 /python/vyos/utils/dict.py | |
parent | 4394e10cdbe35663ad85768a3dd900025036a40b (diff) | |
download | vyos-1x-b5e9b61671d32b3bf540d6ce3638adf33adbd4c7.tar.gz vyos-1x-b5e9b61671d32b3bf540d6ce3638adf33adbd4c7.zip |
config: T5330: allow mangle_dict_keys to preserve type for subclassing
Diffstat (limited to 'python/vyos/utils/dict.py')
-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]): |