From dfd34b1b03d3ec0447fb04e15b2d0861a4a9778d Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 19 Jun 2018 09:11:29 -0400 Subject: Fix podman build -q Only thing that should be printed is the image id. Signed-off-by: Daniel J Walsh Closes: #964 Approved by: mheon --- cmd/podman/build.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/podman/build.go b/cmd/podman/build.go index 1f05da918..01f531814 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -1,6 +1,7 @@ package main import ( + "io/ioutil" "os" "path/filepath" "strings" @@ -211,8 +212,8 @@ func buildCmd(c *cli.Context) error { ForceRmIntermediateCtrs: c.Bool("force-rm"), } - if !c.Bool("quiet") { - options.ReportWriter = os.Stderr + if c.Bool("quiet") { + options.ReportWriter = ioutil.Discard } return runtime.Build(getContext(), options, dockerfiles...) -- cgit v1.2.3-54-g00ecf