Skip to content

Commit

Permalink
making code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosdiez committed Jun 24, 2019
1 parent 1d3c683 commit f802c19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,11 @@ func configureRuntimes(runner cruntime.CommandRunner) cruntime.Manager {
exit.WithError(fmt.Sprintf("Failed runtime for %+v", config), err)
}

disableOtherContainerEngines := viper.GetString(vmDriver) != constants.DriverNone
err = cr.Enable(disableOtherContainerEngines)
disableOthers := true
if viper.GetString(vmDriver) == constants.DriverNone {
disableOthers = false
}
err = cr.Enable(disableOthers)
if err != nil {
exit.WithError("Failed to enable container runtime", err)
}
Expand Down

0 comments on commit f802c19

Please sign in to comment.