Skip to content

Commit

Permalink
Fixing issue with napalm plugin if port but no optional_args (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers authored and dbarrosop committed Aug 16, 2018
1 parent de9eba1 commit b1751e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nornir/plugins/connections/napalm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def open(
}
parameters.update(connection_options)

if port and "port" not in connection_options["optional_args"]:
if port and "port" not in parameters["optional_args"]:
parameters["optional_args"]["port"] = port

network_driver = get_network_driver(platform)
Expand Down

0 comments on commit b1751e6

Please sign in to comment.