fail_json when error and not exit_json

This commit is contained in:
Allen Sanabria 2016-08-04 15:36:39 -07:00 committed by Matt Clay
commit ba17bdf1d0

View file

@ -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: