diff options
author | John Estabrook <jestabro@vyos.io> | 2023-06-02 23:29:47 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-06-22 20:12:08 -0500 |
commit | f2f6b963b755ca5da3321e84738bfec1d08fb1ea (patch) | |
tree | e8878e489b71bf5f116434eb5cff77f01ed3c132 /python/vyos/xml_ref/__init__.py | |
parent | 1a18d5a59d14877984fe00d6257ba8bd5d5036d4 (diff) | |
download | vyos-1x-f2f6b963b755ca5da3321e84738bfec1d08fb1ea.tar.gz vyos-1x-f2f6b963b755ca5da3321e84738bfec1d08fb1ea.zip |
xml: T5218: fix error and simplify logic in recursive option
Diffstat (limited to 'python/vyos/xml_ref/__init__.py')
-rw-r--r-- | python/vyos/xml_ref/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/vyos/xml_ref/__init__.py b/python/vyos/xml_ref/__init__.py index ae5184746..d3fb4ab07 100644 --- a/python/vyos/xml_ref/__init__.py +++ b/python/vyos/xml_ref/__init__.py @@ -62,5 +62,8 @@ def get_config_defaults(rpath: list, conf: dict, get_first_key=False, get_first_key=get_first_key, recursive=recursive) -def merge_defaults(path: list, conf: dict) -> dict: - return load_reference().merge_defaults(path, conf) +def merge_defaults(path: list, conf: dict, get_first_key=False, + recursive=False) -> dict: + return load_reference().merge_defaults(path, conf, + get_first_key=get_first_key, + recursive=recursive) |