Fix exception in junos_package (#24107)

pull/24118/head
Ganesh Nalawade 8 years ago committed by GitHub
parent 1ac17213ea
commit 06732acd4c

@ -134,7 +134,7 @@ def connect(module):
device.timeout = get_param(module, 'timeout') or 10
except ConnectError:
exc = get_exception()
self.raise_exc('unable to connect to %s: %s' % (host, str(exc)))
module.fail_json('unable to connect to %s: %s' % (host, str(exc)))
return device

Loading…
Cancel
Save