1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

prevent winrm Add-Type debug noise from polluting stderr (#22583)

This commit is contained in:
Matt Davis 2017-03-13 14:47:06 -07:00 committed by GitHub
parent 0897ec9938
commit 07674a8446

View file

@ -315,6 +315,7 @@ Function Run($payload) {
$password = $payload.become_password
Add-Type -TypeDefinition $helper_def
Add-Type -TypeDefinition $helper_def -Debug:$false
$exec_args = $null
@ -664,6 +665,7 @@ Function Run($payload) {
[System.IO.Directory]::CreateDirectory([System.IO.Path]::GetDirectoryName($results_path)) | Out-Null
Add-Type -TypeDefinition $native_process_util
Add-Type -TypeDefinition $native_process_util -Debug:$false
# FUTURE: create under new job to ensure all children die on exit?