Skip to content

Commit

Permalink
Use default if timeout in napalm profile is None
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Aug 7, 2023
1 parent 28a30bb commit 19f6ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/napalm.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def connect(host: Host, profile: manage.ManagementProfile) -> NetworkDriver:
hostname=hostname,
username=config.get("username"),
password=config.get("password"),
timeout=config.get("timeout", DEFAULT_TIMEOUT_SECONDS),
timeout=config.get("timeout") or DEFAULT_TIMEOUT_SECONDS,
optional_args=optional_args,
)
# Let temporary file live as long as the device connection exists
Expand Down

0 comments on commit 19f6ec4

Please sign in to comment.