diff options
author | John Estabrook <jestabro@vyos.io> | 2023-07-20 14:42:00 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-07-20 14:42:00 -0500 |
commit | 30b75192f2fb0f9a7ae740f56e75d896fb5cd226 (patch) | |
tree | 1a89b02023d01c731bf2e0ecce3b0054fd4c4f0b /python/vyos/config.py | |
parent | a30395067a20375f050dc7f3d8f9c8644f0f4682 (diff) | |
download | vyos-1x-30b75192f2fb0f9a7ae740f56e75d896fb5cd226.tar.gz vyos-1x-30b75192f2fb0f9a7ae740f56e75d896fb5cd226.zip |
config: T5228: add missing check of args
Diffstat (limited to 'python/vyos/config.py')
-rw-r--r-- | python/vyos/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py index b0dbc5c2a..179f60c43 100644 --- a/python/vyos/config.py +++ b/python/vyos/config.py @@ -245,9 +245,9 @@ class Config(object): """ lpath = self._make_path(path) root_dict = self.get_cached_root_dict(effective) - conf_dict = get_sub_dict(root_dict, lpath, get_first_key) + conf_dict = get_sub_dict(root_dict, lpath, get_first_key=get_first_key) - if key_mangling is None and no_multi_convert and not with_defaults: + if key_mangling is None and no_multi_convert and not (with_defaults or with_recursive_defaults): return deepcopy(conf_dict) rpath = lpath if get_first_key else lpath[:-1] |