diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-12-06 21:23:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 21:23:13 +0000 |
commit | b56673ccdc0c304c8e9c12a9274a6903d45103a6 (patch) | |
tree | d27d741b34c681f16dd5604375ec03148abba67f | |
parent | 6dd7befc4f55550202b3c32cebce6ee70a9105e8 (diff) | |
parent | 62edabd26292181f2ea09759681387a34cf3ad95 (diff) | |
download | vyos-1x-b56673ccdc0c304c8e9c12a9274a6903d45103a6.tar.gz vyos-1x-b56673ccdc0c304c8e9c12a9274a6903d45103a6.zip |
Merge pull request #4226 from jestabro/opt-arg-reference-tree
vyconf: T6718: add keyword default for change in libvyosconfig binding
-rw-r--r-- | python/vyos/configtree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/configtree.py b/python/vyos/configtree.py index 3e02fbba6..fb79e8459 100644 --- a/python/vyos/configtree.py +++ b/python/vyos/configtree.py @@ -469,15 +469,15 @@ def mask_inclusive(left, right, libpath=LIBPATH): return tree -def reference_tree_to_json(from_dir, to_file, libpath=LIBPATH): +def reference_tree_to_json(from_dir, to_file, internal_cache="", libpath=LIBPATH): try: __lib = cdll.LoadLibrary(libpath) __reference_tree_to_json = __lib.reference_tree_to_json - __reference_tree_to_json.argtypes = [c_char_p, c_char_p] + __reference_tree_to_json.argtypes = [c_char_p, c_char_p, c_char_p] __get_error = __lib.get_error __get_error.argtypes = [] __get_error.restype = c_char_p - res = __reference_tree_to_json(from_dir.encode(), to_file.encode()) + res = __reference_tree_to_json(internal_cache.encode(), from_dir.encode(), to_file.encode()) except Exception as e: raise ConfigTreeError(e) if res == 1: |