mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
windows async: return pipeline output in case of a failure (#44807)
This commit is contained in:
parent
aa51072981
commit
559599842a
1 changed files with 3 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue