Skip to content

Commit

Permalink
Simplify Get-WSManSupport based on current .NET Distro Support (#17356
Browse files Browse the repository at this point in the history
)

* Simplify Get-WSManSupport based on current .NET Distro Support

* Update test/tools/Modules/HelpersCommon/HelpersCommon.psm1
  • Loading branch information
TravisEz13 committed May 18, 2022
1 parent e35f4a9 commit e7a4b7d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions test/tools/Modules/HelpersCommon/HelpersCommon.psm1
Expand Up @@ -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
}

0 comments on commit e7a4b7d

Please sign in to comment.