-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
Signed-off-by: Dave May <dave.may@tresta.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ func parseLines(stdout string) []string { | |
} | ||
|
||
func hypervAvailable() error { | ||
stdout, err := cmdOut("@(Get-Command Get-VM).ModuleName") | ||
stdout, err := cmdOut("@(Get-Command hyper-v\\Get-VM).ModuleName") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
davemay99
Contributor
|
||
if err != nil { | ||
return err | ||
} | ||
|
This is wrong. It has to be
stdout, err := cmdOut("@(Get-Command hyper-v\Get-VM).Name")
The command that should be run (or checked) is "Get-VM" (= "Name" probperty) and not "hyper-v" (= "ModuleName" Property).