acme_challenge_cert_helper: fix bad module.fail_json() call (#51795)
* Fix bad module.fail_json() call.
* Add changelog.
(cherry picked from commit c9b08db979
)
This commit is contained in:
parent
718e011168
commit
a200cfb07f
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "acme_challenge_cert_helper - the module no longer crashes when the required ``cryptography`` library cannot be found."
|
|
@ -172,7 +172,7 @@ def main():
|
|||
),
|
||||
)
|
||||
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:
|
||||
# Get parameters
|
||||
|
|
Loading…
Reference in a new issue