mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 02:03:09 +00:00
Have to return the return code on failure, it's a rule!
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user