diff options
author | baude <bbaude@redhat.com> | 2019-01-07 15:08:26 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-01-10 13:18:08 -0600 |
commit | c8e3dd8a9ce7ba7948a5db88608a57de07599c7b (patch) | |
tree | 555741bc5a7d201488f017b1a113651fd3745fd2 /libpod/image/utils.go | |
parent | 6524041fb0ebfc35dafe3bb7bebbd4dfa27ba5e8 (diff) | |
download | podman-c8e3dd8a9ce7ba7948a5db88608a57de07599c7b.tar.gz podman-c8e3dd8a9ce7ba7948a5db88608a57de07599c7b.tar.bz2 podman-c8e3dd8a9ce7ba7948a5db88608a57de07599c7b.zip |
remote-client support for images
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/image/utils.go')
-rw-r--r-- | libpod/image/utils.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/image/utils.go b/libpod/image/utils.go index b944de1bb..135b47008 100644 --- a/libpod/image/utils.go +++ b/libpod/image/utils.go @@ -16,7 +16,7 @@ import ( // findImageInRepotags takes an imageParts struct and searches images' repotags for // a match on name:tag -func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, error) { +func findImageInRepotags(search Parts, images []*Image) (*storage.Image, error) { var results []*storage.Image for _, image := range images { for _, name := range image.Names() { @@ -25,12 +25,12 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er if err != nil { continue } - if d.name == search.name && d.tag == search.tag { + if d.name == search.name && d.Tag == search.Tag { results = append(results, image.image) continue } // account for registry:/somedir/image - if strings.HasSuffix(d.name, search.name) && d.tag == search.tag { + if strings.HasSuffix(d.name, search.name) && d.Tag == search.Tag { results = append(results, image.image) continue } |