diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-10-17 18:44:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 18:44:56 -0400 |
commit | d01382aed1429d5aa2dea77fb15569b03f45e9a1 (patch) | |
tree | c2c4992606864554b346ebbfa7bddc5061bd3bcc /libpod/image/image.go | |
parent | 19c150bef12ff08abc8249cc21275266a7ac74a3 (diff) | |
parent | bfc473f982ecdbfbe885d104036ecf9f70f3cd0f (diff) | |
download | podman-d01382aed1429d5aa2dea77fb15569b03f45e9a1.tar.gz podman-d01382aed1429d5aa2dea77fb15569b03f45e9a1.tar.bz2 podman-d01382aed1429d5aa2dea77fb15569b03f45e9a1.zip |
Merge pull request #1676 from baude/updatebuildah
Vendor in new new buildah/ci
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r-- | libpod/image/image.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go index f39b1d78d..7e520d97e 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -552,7 +552,7 @@ func (i *Image) PushImageToReference(ctx context.Context, dest types.ImageRefere } } // Copy the image to the remote destination - err = cp.Image(ctx, policyContext, dest, src, copyOptions) + _, err = cp.Image(ctx, policyContext, dest, src, copyOptions) if err != nil { return errors.Wrapf(err, "Error copying image to the remote destination") } @@ -912,7 +912,8 @@ func (ir *Runtime) Import(ctx context.Context, path, reference string, writer io if err != nil { errors.Wrapf(err, "error getting image reference for %q", reference) } - if err = cp.Image(ctx, policyContext, dest, src, copyOptions); err != nil { + _, err = cp.Image(ctx, policyContext, dest, src, copyOptions) + if err != nil { return nil, err } return ir.NewFromLocal(reference) |