Return stderr/stdout on changes too

If changes were made, you sometimes want info on what they were.

Change-Id: Ibdb662c0d66e73028211374ea58f106876d74b59
This commit is contained in:
Monty Taylor 2015-11-25 07:38:22 -05:00
parent 92c56e9e99
commit b134ce47a8
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ def main():
error=True, stdout=stdout, stderr=stderr)
elif rc == 2:
# success with changes
module.exit_json(rc=0, changed=True)
module.exit_json(rc=0, changed=True, stdout=stdout, stderr=stderr)
elif rc == 124:
# timeout
module.exit_json(