Skip to content

Commit

Permalink
fail_json when error and not exit_json
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdynasty committed Aug 5, 2016
1 parent 5d4aedb commit ec8d633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/amazon/ec2_vpc_nat_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def main():
)

if not success:
module.exit_json(
module.fail_json(
msg=err_msg, success=success, changed=changed
)
else:
Expand Down

0 comments on commit ec8d633

Please sign in to comment.