Skip to content

Commit 975e5f8

Browse files
authored
Update Ubuntu 22 to be detected as not supported WSMan (PowerShell#17338)
1 parent fea4484 commit 975e5f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tools/Modules/HelpersCommon/HelpersCommon.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ function Get-WsManSupport {
392392
if (
393393
($platformInfo.Platform -match "alpine|raspbian") -or
394394
($platformInfo.Platform -eq "debian" -and $platformInfo.Version -ne '9') -or
395-
($platformInfo.Platform -eq 'centos' -and $platformInfo.Version -eq '8') -or
396-
($platformInfo.Platform -eq 'ubuntu' -and $platformInfo.Version -eq '20.04') -or
395+
($platformInfo.Platform -eq 'centos' -and $platformInfo.Version -ne '7') -or
396+
($platformInfo.Platform -eq 'ubuntu' -and $platformInfo.Version -notin '18.04', '16.04') -or
397397
($platformInfo.Platform -eq 'mariner') -or
398398
($platformInfo.Platform -eq 'rhel') -or
399399
($platformInfo.Platform -eq 'fedora') -or

0 commit comments

Comments
 (0)