windows async: return pipeline output in case of a failure (#44807)

This commit is contained in:
Jordan Borean 2018-08-30 00:13:31 +10:00 committed by Dag Wieers
parent aa51072981
commit 559599842a

View file

@ -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?