Skip to content

Commit

Permalink
Merge pull request #3875 from steved/fix-change-user-none
Browse files Browse the repository at this point in the history
fix CHANGE_MINIKUBE_NONE_USER regression from recent changes
  • Loading branch information
tstromberg authored Mar 21, 2019
2 parents 6751e39 + a94e0ac commit 2579c73
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ func runStart(cmd *cobra.Command, args []string) {
console.Failure("Unable to load cached images from config file.")
}

if config.MachineConfig.VMDriver == constants.DriverNone {
console.OutStyle("starting-none", "Configuring local host environment ...")
prepareNone()
}

if kubeconfig.KeepContext {
console.OutStyle("kubectl", "To connect to this cluster, use: kubectl --context=%s", kubeconfig.ClusterName)
} else {
Expand Down Expand Up @@ -342,10 +347,6 @@ func startHost(api libmachine.API, mc cfg.MachineConfig) (*host.Host, bool) {
if err != nil {
exit.WithError("Failed to check if machine exists", err)
}
if mc.VMDriver == constants.DriverNone {
console.OutStyle("starting-none", "Configuring local host environment ...")
prepareNone()
}

var host *host.Host
start := func() (err error) {
Expand Down

0 comments on commit 2579c73

Please sign in to comment.