From bf815d3d73584096296d961ece8269940de15e16 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 10 Jul 2020 12:27:54 +0200 Subject: [PATCH] cmd/create: Restore the spinner, when pulling an image, to stdout This doesn't seem to have any user-visible effect. However, since the line was inadvertently removed, it's good to put it back. Fallout from 950f510872404da8089ad7ce5911d8342bf7a116 https://github.com/containers/toolbox/pull/498 --- src/cmd/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/create.go b/src/cmd/create.go index 163bf69e4..77b469968 100644 --- a/src/cmd/create.go +++ b/src/cmd/create.go @@ -642,6 +642,7 @@ func pullImage(image, release string) (bool, error) { if logLevel := logrus.GetLevel(); logLevel < logrus.DebugLevel && terminal.IsTerminal(stdoutFdInt) { s := spinner.New(spinner.CharSets[9], 500*time.Millisecond) s.Prefix = fmt.Sprintf("Pulling %s: ", imageFull) + s.Writer = os.Stdout s.Start() defer s.Stop() }