mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
windows: removed #Requires from PS pipelines as it causes STDERR false positives (#31558)
This commit is contained in:
committed by
Matt Davis
parent
20e546258d
commit
7fce636c2b
@@ -35,7 +35,6 @@ if _powershell_version:
|
|||||||
_common_args = ['PowerShell', '-Version', _powershell_version] + _common_args[1:]
|
_common_args = ['PowerShell', '-Version', _powershell_version] + _common_args[1:]
|
||||||
|
|
||||||
exec_wrapper = br'''
|
exec_wrapper = br'''
|
||||||
#Requires -Version 3.0
|
|
||||||
begin {
|
begin {
|
||||||
$DebugPreference = "Continue"
|
$DebugPreference = "Continue"
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
@@ -880,7 +879,6 @@ namespace Ansible
|
|||||||
"@
|
"@
|
||||||
|
|
||||||
$exec_wrapper = {
|
$exec_wrapper = {
|
||||||
#Requires -Version 3.0
|
|
||||||
Set-StrictMode -Version 2
|
Set-StrictMode -Version 2
|
||||||
$DebugPreference = "Continue"
|
$DebugPreference = "Continue"
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
@@ -1004,7 +1002,6 @@ $ErrorActionPreference = "Stop"
|
|||||||
# return asyncresult to controller
|
# return asyncresult to controller
|
||||||
|
|
||||||
$exec_wrapper = {
|
$exec_wrapper = {
|
||||||
#Requires -Version 3.0
|
|
||||||
$DebugPreference = "Continue"
|
$DebugPreference = "Continue"
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
Set-StrictMode -Version 2
|
Set-StrictMode -Version 2
|
||||||
|
|||||||
Reference in New Issue
Block a user