1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Peter Sprygada 2016-11-26 22:24:48 -05:00 committed by GitHub
parent eec6980f3e
commit a757a77159

View file

@ -111,6 +111,7 @@ class Netconf(object):
try: try:
self.device = Device(host, **kwargs) self.device = Device(host, **kwargs)
self.device.open() self.device.open()
self.device.timeout = params['timeout']
except ConnectError: except ConnectError:
exc = get_exception() exc = get_exception()
self.raise_exc('unable to connect to %s: %s' % (host, str(exc))) self.raise_exc('unable to connect to %s: %s' % (host, str(exc)))