Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Get-WSManSupport based on current .NET Distro Support #17356

Merged
merged 2 commits into from May 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
}