1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Have to return the return code on failure, it's a rule!

This commit is contained in:
Michael DeHaan 2012-02-25 21:00:51 -05:00
parent d308254eae
commit bfd93081ae

View file

@ -73,7 +73,8 @@ if changed:
if rc != 0:
# yeah, should probably include output of failure...
print json.dumps({
"failed" : 1
"failed" : 1,
"rc" : rc
})
sys.exit(1)