Merge pull request #3875 from steved/fix-change-user-none

fix CHANGE_MINIKUBE_NONE_USER regression from recent changes
pull/2881/head^2
Thomas Strömberg 2019-03-20 20:11:06 -07:00 committed by GitHub
commit 2579c73e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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 {
@ -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) {