Skip to content

Commit

Permalink
Update junos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SenorRodriguez authored Oct 22, 2024
1 parent 776bfb1 commit 4bbc187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -2462,14 +2462,14 @@ def get_config(self, retrieve="all", full=False, sanitized=False, format="text")
if options["format"] == "text":
rv["candidate"] = str(config.text)
else:
return str(config["configuration"])
rv["candidate"] = str(config["configuration"])
if retrieve in ("running", "all"):
options["database"] = "committed"
config = self.device.rpc.get_config(filter_xml=None, options=options)
if options["format"] == "text":
rv["candidate"] = str(config.text)
else:
return str(config["configuration"])
rv["candidate"] = str(config["configuration"])
if sanitized:
return napalm.base.helpers.sanitize_configs(rv, sanitize_strings)

Expand Down

0 comments on commit 4bbc187

Please sign in to comment.