Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Select-Object instead of parenthesis to get Hyper-V VM status
Previous implementation doesn't fail if the VM doesn't exist. With Select-Object, the Hyper-V Get-VM error is correctly reported. Before: $ crc status Error getting the machine state: unexpected Hyper-V state [] After: $ crc status Cannot get machine state: Failed to find the VM status: exit status 1 - Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "crc"
- Loading branch information