mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
fixes timeout param in netconf provider for junos (#18634)
This change will now cause the netconf provider to honor the module timeout value when making calls to pyez.
This commit is contained in:
@@ -111,6 +111,7 @@ class Netconf(object):
|
||||
try:
|
||||
self.device = Device(host, **kwargs)
|
||||
self.device.open()
|
||||
self.device.timeout = params['timeout']
|
||||
except ConnectError:
|
||||
exc = get_exception()
|
||||
self.raise_exc('unable to connect to %s: %s' % (host, str(exc)))
|
||||
|
||||
Reference in New Issue
Block a user