diff options
author | umohnani8 <umohnani@redhat.com> | 2017-12-11 09:48:55 -0500 |
---|---|---|
committer | umohnani8 <umohnani@redhat.com> | 2017-12-11 09:51:34 -0500 |
commit | eaf4d6c8c25eb433158f92b2daf6e9bd60d28703 (patch) | |
tree | a548cee3bd3e114474e1b5e872ccbb3ba20120dd /libpod/runtime_img.go | |
parent | 8d31ec2ad775c97c4b860eb24a3481092b6e88e3 (diff) | |
download | podman-eaf4d6c8c25eb433158f92b2daf6e9bd60d28703.tar.gz podman-eaf4d6c8c25eb433158f92b2daf6e9bd60d28703.tar.bz2 podman-eaf4d6c8c25eb433158f92b2daf6e9bd60d28703.zip |
Vendor in latest upstream containers/image
Signed-off-by: umohnani8 <umohnani@redhat.com>
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r-- | libpod/runtime_img.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go index ba1cec96f..598bfaf0f 100644 --- a/libpod/runtime_img.go +++ b/libpod/runtime_img.go @@ -228,7 +228,7 @@ func (k *Image) GetManifest() error { if err != nil { return errors.Wrapf(err, "unable to create new image source") } - _, _, err = imageSource.GetManifest() + _, _, err = imageSource.GetManifest(nil) if err == nil { return nil } @@ -383,7 +383,7 @@ func (k *Image) HasLatest() (bool, error) { if err != nil { return false, err } - _, _, err = pullRef.(types.ImageSource).GetManifest() + _, _, err = pullRef.(types.ImageSource).GetManifest(nil) return false, err } @@ -1124,7 +1124,6 @@ func (r *Runtime) InfoAndDigestAndSize(img storage.Image) (*types.ImageInspectIn if err != nil { return nil, "", -1, errors.Wrapf(err, "error reading image %q", img.ID) } - defer imgRef.Close() return infoAndDigestAndSize(imgRef) } |