mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #16680 from chouseknecht/devel
Fix find_image() not matching on tag
This commit is contained in:
@@ -431,9 +431,10 @@ class AnsibleDockerClient(Client):
|
||||
images = response
|
||||
if tag:
|
||||
lookup = "%s:%s" % (name, tag)
|
||||
images = []
|
||||
for image in response:
|
||||
self.log(image, pretty_print=True)
|
||||
if image.get('RepoTags') and lookup in image.get('RepoTags'):
|
||||
tags = image.get('RepoTags')
|
||||
if tags and lookup in tags:
|
||||
images = [image]
|
||||
break
|
||||
return images
|
||||
|
||||
Reference in New Issue
Block a user