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

pull/4420/head
Michael DeHaan 2012-02-25 21:00:51 -05:00
parent d308254eae
commit bfd93081ae
1 changed files with 2 additions and 1 deletions

View File

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