Fix podman build -q

Only thing that should be printed is the image id.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: 
Approved by: mheon
This commit is contained in:
Daniel J Walsh
2018-06-19 09:11:29 -04:00
committed by Atomic Bot
parent 7676cd4b12
commit dfd34b1b03

@ -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...)