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:
parent
1ac17213ea
commit
06732acd4c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue