From c79bd4ad7404b3c17ff3fd14991dc3f4cddf792e Mon Sep 17 00:00:00 2001 From: Carlos Alberto Costa Beppler Date: Mon, 19 Mar 2018 09:22:46 -0300 Subject: [PATCH] Correct the Hyper-V module check on pre-create check. Signed-off-by: Carlos Alberto Costa Beppler --- drivers/hyperv/powershell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hyperv/powershell.go b/drivers/hyperv/powershell.go index d34c624965..5175791fd5 100644 --- a/drivers/hyperv/powershell.go +++ b/drivers/hyperv/powershell.go @@ -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 }