From b878e8f0f07b7f30dc6594648a99aea4f6fa394e Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Sat, 26 Nov 2016 22:24:48 -0500 Subject: [PATCH] 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. (cherry picked from commit a757a77159695032b8355b93b7f4381d8efdaa80) --- lib/ansible/module_utils/junos.py | 1 + 1 file changed, 1 insertion(+) 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)))