Merge pull request #3875 from steved/fix-change-user-none
fix CHANGE_MINIKUBE_NONE_USER regression from recent changespull/2881/head^2
commit
2579c73e11
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue