diff options
author | baude <bbaude@redhat.com> | 2018-03-21 09:55:57 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-21 19:14:50 +0000 |
commit | d0835493d51038dda2bc63530f4fb70ced9f98cf (patch) | |
tree | e8199183a90f2d09dd4eb1f7539031811503bddc /libpod/runtime_img.go | |
parent | 3428de0672afcd94ce65d7c29fd23e44e7e2b465 (diff) | |
download | podman-d0835493d51038dda2bc63530f4fb70ced9f98cf.tar.gz podman-d0835493d51038dda2bc63530f4fb70ced9f98cf.tar.bz2 podman-d0835493d51038dda2bc63530f4fb70ced9f98cf.zip |
Migrate podman inspect and tag to image library
Signed-off-by: baude <bbaude@redhat.com>
Closes: #525
Approved by: baude
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r-- | libpod/runtime_img.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go index e3cb4e2c3..248d1c0aa 100644 --- a/libpod/runtime_img.go +++ b/libpod/runtime_img.go @@ -961,7 +961,7 @@ func (r *Runtime) GetImages(params *ImageFilterParams, filters ...ImageFilter) ( var imagesFiltered []*image.Image for _, img := range images { - info, err := GetImageData(img) + info, err := img.Inspect() if err != nil { return nil, err @@ -1062,7 +1062,7 @@ func (r *Runtime) ParseImageFilter(imageInput, filter string) (*ImageFilterParam params.Label = pair[1] case "before": if img, err := findImageInSlice(images, pair[1]); err == nil { - info, err := GetImageData(img) + info, err := img.Inspect() if err != nil { return nil, err } @@ -1072,7 +1072,7 @@ func (r *Runtime) ParseImageFilter(imageInput, filter string) (*ImageFilterParam } case "since": if img, err := findImageInSlice(images, pair[1]); err == nil { - info, err := GetImageData(img) + info, err := img.Inspect() if err != nil { return nil, err } |