diff options
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r-- | libpod/runtime_img.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |