File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,9 @@ func ShowProgress(inst *store.Instance, progress Progress) {
301301// Same as pb.Simple, but don't show the `{{percent . }}`
302302const tmpl = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{with string . "suffix"}} {{.}}{{end}}`
303303
304+ // Keep the old progress bar showing, or clean on finish
305+ const keep = true
306+
304307func ShowRequirement (inst * store.Instance , req hostagentevents.Requirement ) {
305308 if ! OutputProgress {
306309 return
@@ -311,8 +314,9 @@ func ShowRequirement(inst *store.Instance, req hostagentevents.Requirement) {
311314 pb .RegisterElement ("bar" , pb .ElementBar , false )
312315 ProgressBar .SetTemplateString (tmpl )
313316 ProgressBar .SetWidth (100 ) // with longest suffix
317+ ProgressBar .Set (pb .CleanOnFinish , ! keep )
314318 ProgressBar .Set ("prefix" , "Waiting" )
315- } else {
319+ } else if keep {
316320 // Flush the progress bar output for this line
317321 ProgressBar .Finish ()
318322 ProgressBar .Start ()
You can’t perform that action at this time.
0 commit comments