From c1cf8e671a5b263daa3f998360333758ece5c4e9 Mon Sep 17 00:00:00 2001 From: Xav Paice Date: Wed, 18 Nov 2015 14:33:25 +1300 Subject: [PATCH] Added stdout and stderr to puppet output for rc=2 --- system/puppet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/puppet.py b/system/puppet.py index 48a497c37ce..ab1339ec5ba 100644 --- a/system/puppet.py +++ b/system/puppet.py @@ -197,7 +197,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(