Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Correct the Hyper-V module check on pre-create check.
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alberto Costa Beppler <[email protected]>
  • Loading branch information
Carlos Alberto Costa Beppler committed Mar 19, 2018
1 parent 51ed7e7 commit c79bd4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hyperv/powershell.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func parseLines(stdout string) []string {
}

func hypervAvailable() error {
stdout, err := cmdOut("@(Get-Command hyper-v\\Get-VM).ModuleName")
stdout, err := cmdOut("@(Get-Module -ListAvailable hyper-v).Name | Get-Unique")
if err != nil {
return err
}
Expand Down

0 comments on commit c79bd4a

Please sign in to comment.