Add comment about kvm2 force upgrade

pull/4676/head
josedonizetti 2019-07-03 17:11:30 -03:00
parent dabf272f33
commit f61d62647a
1 changed files with 3 additions and 2 deletions

View File

@ -859,8 +859,8 @@ func validateDriverVersion(vmDriver string) {
cmd := exec.Command("docker-machine-driver-kvm2", "version")
output, err := cmd.Output()
// we don't want to fail if an error was returned, libmachine has a nice message for the user if
// the driver isn't present
// we don't want to fail if an error was returned,
// libmachine has a nice message for the user if the driver isn't present
if err != nil {
console.Warning("Error checking driver version: %v", err)
return
@ -868,6 +868,7 @@ func validateDriverVersion(vmDriver string) {
v := extractVMDriverVersion(string(output))
// if the driver doesn't have return any version, it is really old, we force a upgrade.
if len(v) == 0 {
exit.WithCode(exit.Failure, "Please upgrade the 'docker-machine-driver-kvm2'.")
}