Fixed output on back to back spinner steps

pull/9935/head
Steven Powell 2020-12-11 14:53:43 -07:00
parent b4bf2bde33
commit 12893a6121
1 changed files with 4 additions and 0 deletions
pkg/minikube/out

View File

@ -138,6 +138,10 @@ func spinnerString(format string, a ...interface{}) {
}
klog.Infof(format, a...)
// if spin is active from a previous step, it will stop spinner displaying
if spin.Active() {
spin.Stop()
}
_, err := fmt.Fprintf(outFile, format, a...)
if err != nil {
klog.Errorf("Fprintf failed: %v", err)