Merge pull request #16680 from chouseknecht/devel
Fix find_image() not matching on tag
This commit is contained in:
commit
30c0ce1e60
1 changed files with 3 additions and 2 deletions
|
@ -431,9 +431,10 @@ class AnsibleDockerClient(Client):
|
||||||
images = response
|
images = response
|
||||||
if tag:
|
if tag:
|
||||||
lookup = "%s:%s" % (name, tag)
|
lookup = "%s:%s" % (name, tag)
|
||||||
|
images = []
|
||||||
for image in response:
|
for image in response:
|
||||||
self.log(image, pretty_print=True)
|
tags = image.get('RepoTags')
|
||||||
if image.get('RepoTags') and lookup in image.get('RepoTags'):
|
if tags and lookup in tags:
|
||||||
images = [image]
|
images = [image]
|
||||||
break
|
break
|
||||||
return images
|
return images
|
||||||
|
|
Loading…
Reference in a new issue