Tell user given driver has been igored if exising VM has a different driver

pull/3374/head
wujeff 2018-11-28 18:31:37 +08:00
parent 57f4d9247e
commit bae164a217
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ func StartHost(api libmachine.API, config cfg.MachineConfig) (*host.Host, error)
return nil, errors.Wrap(err, "Error loading existing host. Please try running [minikube delete], then run [minikube start] again.")
}
if h.Driver.DriverName() != "none" && h.Driver.DriverName() != config.VMDriver {
fmt.Printf("Skipping %s driver, existing host has %s driver.\n", config.VMDriver, h.Driver.DriverName())
}
s, err := h.Driver.GetState()
glog.Infoln("Machine state: ", s)
if err != nil {