From 94a810751539afeb1590ccc1a9745f1d5767fda2 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 19 Dec 2017 09:07:49 -0500 Subject: Add support for adding devices to container Also add --quiet option to kpod create/run since this will help with writing tests. Signed-off-by: Daniel J Walsh Closes: #140 Approved by: TomSweeneyRedHat --- libpod/runtime_img.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpod') diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go index 6107c2fdb..53211ff54 100644 --- a/libpod/runtime_img.go +++ b/libpod/runtime_img.go @@ -397,7 +397,7 @@ func (k *Image) HasLatest() (bool, error) { } // Pull is a wrapper function to pull and image -func (k *Image) Pull() error { +func (k *Image) Pull(writer io.Writer) error { // If the image hasn't been decomposed yet if !k.beenDecomposed { err := k.Decompose() @@ -405,7 +405,7 @@ func (k *Image) Pull() error { return err } } - k.runtime.PullImage(k.PullName, CopyOptions{Writer: os.Stdout, SignaturePolicyPath: k.runtime.config.SignaturePolicyPath}) + k.runtime.PullImage(k.PullName, CopyOptions{Writer: writer, SignaturePolicyPath: k.runtime.config.SignaturePolicyPath}) return nil } -- cgit v1.2.3-54-g00ecf