From 7fce636c2b250aa6ffd7322f03a0c982ecd802e3 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Thu, 12 Oct 2017 07:16:58 +1000 Subject: [PATCH] windows: removed #Requires from PS pipelines as it causes STDERR false positives (#31558) --- lib/ansible/plugins/shell/powershell.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index c7b514d52c..23b670080f 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -35,7 +35,6 @@ if _powershell_version: _common_args = ['PowerShell', '-Version', _powershell_version] + _common_args[1:] exec_wrapper = br''' -#Requires -Version 3.0 begin { $DebugPreference = "Continue" $ErrorActionPreference = "Stop" @@ -880,7 +879,6 @@ namespace Ansible "@ $exec_wrapper = { - #Requires -Version 3.0 Set-StrictMode -Version 2 $DebugPreference = "Continue" $ErrorActionPreference = "Stop" @@ -1004,7 +1002,6 @@ $ErrorActionPreference = "Stop" # return asyncresult to controller $exec_wrapper = { -#Requires -Version 3.0 $DebugPreference = "Continue" $ErrorActionPreference = "Stop" Set-StrictMode -Version 2