diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-28 14:36:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 14:36:43 +0000 |
commit | d2802636b0a7e3d281e52b44676de5e3226fbabf (patch) | |
tree | 0bff853639fdce694a15879793b4ea89caa993b5 /libpod | |
parent | 97841e55072ae71713922ab6c6c1269e74b08dcf (diff) | |
parent | 1b5853e64794403d80c4d339c97b61dd63dd093a (diff) | |
download | podman-d2802636b0a7e3d281e52b44676de5e3226fbabf.tar.gz podman-d2802636b0a7e3d281e52b44676de5e3226fbabf.tar.bz2 podman-d2802636b0a7e3d281e52b44676de5e3226fbabf.zip |
Merge pull request #7770 from rhatdan/pullpolicy
Properly handle podman run --pull command
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/image/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/utils.go b/libpod/image/utils.go index 918314476..2538f429b 100644 --- a/libpod/image/utils.go +++ b/libpod/image/utils.go @@ -33,7 +33,7 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er continue } // account for registry:/somedir/image - if strings.HasSuffix(dName, searchName) && dSuspiciousTagValueForSearch == searchSuspiciousTagValueForSearch { + if strings.HasSuffix(dName, "/"+searchName) && dSuspiciousTagValueForSearch == searchSuspiciousTagValueForSearch { results = append(results, image.image) continue } |