Skip to content

Commit

Permalink
Merge pull request #8896 from tstromberg/crio-fixes
Browse files Browse the repository at this point in the history
Add stopping as a possible state in deleting, change errorf to warningf
  • Loading branch information
sharifelgamal authored Jul 31, 2020
2 parents 15c013c + 4384e67 commit bf85c88
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/minikube/out/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
}
}
Expand All @@ -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 ""
}

Expand Down

0 comments on commit bf85c88

Please sign in to comment.