Skip to content

Commit

Permalink
Netconf connection plugin does not respect ssh config (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
fach committed Feb 4, 2020
1 parent 96c6329 commit bf12ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nornir/plugins/connections/netconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def open(
try:
parameters["ssh_config"] = configuration.ssh.config_file # type: ignore
except AttributeError:
parameters["ssh_config"] = None
pass

parameters.update(extras)
parameters["ssh_config"] = None

connection = manager.connect_ssh(**parameters)
self.connection = connection
Expand Down
1 change: 1 addition & 0 deletions tests/inventory_data/netconf_hosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ netconf1.no_group:
allow_agent: False
hostkey_verify: False
look_for_keys: False
ssh_config: null

0 comments on commit bf12ba8

Please sign in to comment.