Fix exception in junos_package (#24107)

This commit is contained in:
Ganesh Nalawade 2017-04-28 19:33:34 +05:30 committed by GitHub
parent 1ac17213ea
commit 06732acd4c

View file

@ -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