Closed liamwh closed 3 years ago
Is there an actual issue that occurs when Get-Distribution
doesn't resolve a distribution? The code did use to rely on it being a known one but now Get-Distribution
should only be used to determine if it's a macOS or Linux distribution so would be good to see if Install-WSMan
is erroring in any way..
I assume it's the same issue as https://github.com/jborean93/omi/issues/30. Looks like how I assumed switch statements worked is not entirely correct.
2.2.1 has been released to the PSGallery and should fix this problem https://www.powershellgallery.com/packages/PSWSMan/2.2.1
SUMMARY
Get-Distribution doesn't resolve for RHEL operating systems
OS / ENVIRONMENT
ubi8 (RHEL based) Docker container