From ffa4f0c427e9a3ab2af442f71a7616e5fa5ccd60 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Thu, 16 Mar 2017 15:44:42 -0700 Subject: [PATCH] Suppress Windows Add-Type debug noise (#22722) --- lib/ansible/plugins/shell/powershell.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index 4a81a594cc..35ba05e78e 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -314,7 +314,6 @@ Function Run($payload) { $username = $payload.become_user $password = $payload.become_password - Add-Type -TypeDefinition $helper_def Add-Type -TypeDefinition $helper_def -Debug:$false $exec_args = $null @@ -693,7 +692,6 @@ 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?