diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-11 05:54:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-11 05:54:16 -0800 |
commit | 9368c24be6f289d21a0065df24471268ead59664 (patch) | |
tree | ee9aec7d2e4a04a4310dbd54730c9aaa7a2dfe46 /libpod/image/utils.go | |
parent | b3eb23d671425775673f86bd02b9c89ef781f590 (diff) | |
parent | c8e3dd8a9ce7ba7948a5db88608a57de07599c7b (diff) | |
download | podman-9368c24be6f289d21a0065df24471268ead59664.tar.gz podman-9368c24be6f289d21a0065df24471268ead59664.tar.bz2 podman-9368c24be6f289d21a0065df24471268ead59664.zip |
Merge pull request #2113 from baude/remoteimages
remote-client support for images
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 } |