Skip to content

Commit

Permalink
Merge pull request docker#29 from sharifelgamal/master
Browse files Browse the repository at this point in the history
don't panic if hyper-v isn't enabled
  • Loading branch information
afbjorklund committed Aug 10, 2020
2 parents 41eb826 + 6bdd70a commit 7d42fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hyperv/powershell.go
Expand Up @@ -61,7 +61,7 @@ func hypervAvailable() error {
}

resp := parseLines(stdout)
if resp[0] != "Hyper-V" {
if resp == nil || len(resp) == 0 || resp[0] != "Hyper-V" {
return ErrNotInstalled
}

Expand Down

0 comments on commit 7d42fed

Please sign in to comment.