diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index 7fe6650015..3d24b86037 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -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)))