return wu result from inner job (#42647)

fixes #42423
This commit is contained in:
Matt Davis 2018-07-11 18:01:42 -07:00 committed by GitHub
parent e115e6496f
commit a5fc9a17f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- win_updates - fixed module return value is lost in error in some cases (https://github.com/ansible/ansible/pull/42647)

View file

@ -355,6 +355,8 @@ $update_script_block = {
}
Write-DebugLog -msg "Return value:`r`n$(ConvertTo-Json -InputObject $result -Depth 99)"
return $result
}
$check_mode = $arguments.check_mode