From a8e26bcf82a6305e509358e748b72219ca91dc55 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Thu, 23 Nov 2023 10:43:59 +0530 Subject: [PATCH] Fix for issue #1245 --- lib/jnpr/junos/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/utils/config.py b/lib/jnpr/junos/utils/config.py index d53baf2b7..619595075 100644 --- a/lib/jnpr/junos/utils/config.py +++ b/lib/jnpr/junos/utils/config.py @@ -495,7 +495,7 @@ def _lset_from_rexp(rpc): elif re.search(r"^\s*\{", rpc) and re.search(r".*}\s*$", rpc): kvargs["format"] = "json" - def try_load(rpc_contents, rpc_xattrs, ignore_warning=False): + def try_load(rpc_contents, rpc_xattrs, ignore_warning=ignore_warning): try: got = self.rpc.load_config( rpc_contents, ignore_warning=ignore_warning, **rpc_xattrs