From 4384e67eb101e5c633237f88414a7e2b18c5c9d7 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Thu, 30 Jul 2020 16:11:26 -0700 Subject: [PATCH] Add stopping as a possible state in deleting, change errorf to warningf --- pkg/minikube/out/register/register.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/minikube/out/register/register.go b/pkg/minikube/out/register/register.go index b13879433fce..d4ff06af5ec9 100644 --- a/pkg/minikube/out/register/register.go +++ b/pkg/minikube/out/register/register.go @@ -81,7 +81,7 @@ func init() { Stopping: []RegStep{Stopping, Done}, Pausing: []RegStep{Pausing, Done}, Unpausing: []RegStep{Unpausing, Done}, - Deleting: []RegStep{Deleting, Done}, + Deleting: []RegStep{Deleting, Stopping, Deleting, Done}, }, } } @@ -108,9 +108,8 @@ func (r *Register) currentStep() string { } } - // all steps should be registered so this shouldn't happen - // can't call exit.WithError as it creates an import dependency loop - glog.Errorf("%q was not found within the registered steps for %q: %v", r.current, r.first, steps) + // Warn, as sometimes detours happen: "start" may cause "stopping" and "deleting" + glog.Warningf("%q was not found within the registered steps for %q: %v", r.current, r.first, steps) return "" }