vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
743 stars 602 forks source link

The module VAMI.psm1 uses sort instead of Sort-Object which breaks using Core on Linux #535

Closed gungazoo closed 2 years ago

gungazoo commented 2 years ago

Describe the bug

The function Get-VAMIDisks in the module VAMI.psm1 uses a "sort" instead of "Sort-Object." When used with PowerShell on Linux the OS sort function kicks in instead of the Powershell version and it doesn't work.

Reproduction steps

1. Just run Get-VAMIDisks using PowerShell core on Linux

Expected behavior

It is expected that the function will return the disks and sizes of the vCenter appliance

Additional context

No response