mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Merge pull request #15755 from ocadotechnology/fix-junos-netconf-ssh-agent
Allow ssh agent usage for junos_netconf
This commit is contained in:
@@ -95,7 +95,7 @@ class Cli(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.shell = Shell()
|
self.shell = Shell()
|
||||||
self.shell.open(host, port=port, username=username, password=password, key_filename=key_filename)
|
self.shell.open(host, port=port, username=username, password=password, key_filename=key_filename, allow_agent=True)
|
||||||
except ShellError:
|
except ShellError:
|
||||||
e = get_exception()
|
e = get_exception()
|
||||||
msg = 'failed to connect to %s:%s - %s' % (host, port, str(e))
|
msg = 'failed to connect to %s:%s - %s' % (host, port, str(e))
|
||||||
|
|||||||
Reference in New Issue
Block a user