mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
acme_challenge_cert_helper: fix bad module.fail_json() call (#51795)
* Fix bad module.fail_json() call. * Add changelog.
This commit is contained in:
committed by
Jordan Borean
parent
146a89b612
commit
c9b08db979
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- "acme_challenge_cert_helper - the module no longer crashes when the required ``cryptography`` library cannot be found."
|
||||||
@@ -179,7 +179,7 @@ def main():
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
if not HAS_CRYPTOGRAPHY:
|
if not HAS_CRYPTOGRAPHY:
|
||||||
module.fail(msg='cryptography >= 1.3 is required for this module.')
|
module.fail_json(msg='cryptography >= 1.3 is required for this module.')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Get parameters
|
# Get parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user