Skip to content

Commit 4bbc187

Browse files
Update junos.py
1 parent 776bfb1 commit 4bbc187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

napalm/junos/junos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,14 +2462,14 @@ def get_config(self, retrieve="all", full=False, sanitized=False, format="text")
24622462
if options["format"] == "text":
24632463
rv["candidate"] = str(config.text)
24642464
else:
2465-
return str(config["configuration"])
2465+
rv["candidate"] = str(config["configuration"])
24662466
if retrieve in ("running", "all"):
24672467
options["database"] = "committed"
24682468
config = self.device.rpc.get_config(filter_xml=None, options=options)
24692469
if options["format"] == "text":
24702470
rv["candidate"] = str(config.text)
24712471
else:
2472-
return str(config["configuration"])
2472+
rv["candidate"] = str(config["configuration"])
24732473
if sanitized:
24742474
return napalm.base.helpers.sanitize_configs(rv, sanitize_strings)
24752475

0 commit comments

Comments
 (0)