diff options
author | Jordan Borean <jborean93@gmail.com> | 2018-08-30 00:13:31 +1000 |
---|---|---|
committer | Dag Wieers <dag@wieers.com> | 2018-08-29 16:13:31 +0200 |
commit | 559599842a1726127766e7a47caff7000d7e621d (patch) | |
tree | 8bc55afcc9e9edc11a6890e37c67384f9b5bf25a /lib/ansible/plugins/shell | |
parent | aa510729819752b2d8c401b19c0731ca0fbe6a3d (diff) | |
download | ansible-559599842a1726127766e7a47caff7000d7e621d.tar.gz |
windows async: return pipeline output in case of a failure (#44807)
Diffstat (limited to 'lib/ansible/plugins/shell')
-rw-r--r-- | lib/ansible/plugins/shell/powershell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index 6b1208ef47..454784fe47 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -1417,6 +1417,9 @@ Function Run($payload) { $result.failed = $true $result.msg = "failed to parse module output: $excep" + # return the output back to Ansible to help with debugging errors + $result.stdout = $job_output | Out-String + $result.stderr = $job_error | Out-String } # TODO: determine success/fail, or always include stderr if nonempty? |