mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
Fix exception in junos_package (#24107)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user