From e7a4b7ddaa4634ea61e8acce8e2d491090aa965f Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 18 May 2022 09:34:43 -0700 Subject: [PATCH] Simplify `Get-WSManSupport` based on current .NET Distro Support (#17356) * Simplify Get-WSManSupport based on current .NET Distro Support * Update test/tools/Modules/HelpersCommon/HelpersCommon.psm1 --- test/tools/Modules/HelpersCommon/HelpersCommon.psm1 | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/tools/Modules/HelpersCommon/HelpersCommon.psm1 b/test/tools/Modules/HelpersCommon/HelpersCommon.psm1 index 8bdc144cac8d..f0706650bb91 100644 --- a/test/tools/Modules/HelpersCommon/HelpersCommon.psm1 +++ b/test/tools/Modules/HelpersCommon/HelpersCommon.psm1 @@ -390,16 +390,9 @@ function Get-PlatformInfo { function Get-WsManSupport { $platformInfo = Get-PlatformInfo if ( - ($platformInfo.Platform -match "alpine|raspbian") -or - ($platformInfo.Platform -eq "debian" -and $platformInfo.Version -ne '9') -or - ($platformInfo.Platform -eq 'centos' -and $platformInfo.Version -ne '7') -or - ($platformInfo.Platform -eq 'ubuntu' -and $platformInfo.Version -notin '18.04', '16.04') -or - ($platformInfo.Platform -eq 'mariner') -or - ($platformInfo.Platform -eq 'rhel') -or - ($platformInfo.Platform -eq 'fedora') -or - ($IsMacOS) + ($platformInfo.Platform -eq 'centos' -and $platformInfo.Version -eq '7') ) { - return $false + return $true } - return $true + return $false }