1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 device.timeout = get_param(module, 'timeout') or 10
except ConnectError: except ConnectError:
exc = get_exception() 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 return device