There is a bug in getting the distribution name when there is only one wsl distribution
HotRockit opened this issue · comments
The type of variable distroList is System.Object, not System.Array when there is only one wsl distribution.
Why Microsoft, why u do this?
On a serious note, I think I will create an issue in wsl first and see what they think about this since imo this seems like a bad implementation on wsl's part. If they believe that it is working as intended, then I will push a fix to handle this case.
Urgh, this seems like an issue with how Select-Object
behaves and so is not a wsl issue. I almost made a ticket there and looked like an idiot. Well, I will see if I can fix this.
Thanks for the report.
@HotRockit I have merged a fix. This should hopefully fix your issue. Let me know if the issue persists.
@HotRockit I have merged a fix. This should hopefully fix your issue. Let me know if the issue persists.
Thanks, this fix worked for me.