Skip to content

Commit

Permalink
Merge pull request #3374 from jeffwubj/dev
Browse files Browse the repository at this point in the history
Tell user given driver has been igored if exising VM has a different …
  • Loading branch information
tstromberg authored Dec 22, 2018
2 parents 3addfca + 8905dba commit 6a04066
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() != 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 {
Expand Down

0 comments on commit 6a04066

Please sign in to comment.