Prepend hyper-v module name to fix cmdlet collision with vmware powercli

Signed-off-by: Dave May <dave.may@tresta.com>
This commit is contained in:
Dave May
2018-02-23 16:10:51 -05:00
parent 7c1c8d749b
commit 15095c90d0
2 changed files with 18 additions and 18 deletions

View File

@@ -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")
if err != nil {
return err
}