Fixed output on back to back spinner steps
parent
b4bf2bde33
commit
12893a6121
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue