mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fail_json when error and not exit_json
This commit is contained in:
committed by
Matt Clay
parent
38349f226a
commit
ba17bdf1d0
@@ -1062,7 +1062,7 @@ def main():
|
||||
)
|
||||
|
||||
if not success:
|
||||
module.exit_json(
|
||||
module.fail_json(
|
||||
msg=err_msg, success=success, changed=changed
|
||||
)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user