mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
fail_json when error and not exit_json
This commit is contained in:
parent
38349f226a
commit
ba17bdf1d0
1 changed files with 1 additions and 1 deletions
|
@ -1062,7 +1062,7 @@ def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
if not success:
|
if not success:
|
||||||
module.exit_json(
|
module.fail_json(
|
||||||
msg=err_msg, success=success, changed=changed
|
msg=err_msg, success=success, changed=changed
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue