mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Return empty list if an image has no repo_tags
This commit is contained in:
committed by
Matt Clay
parent
6f7cd5c307
commit
030858df67
@@ -824,7 +824,7 @@ class DockerManager(object):
|
||||
for image in self.client.images(name=image):
|
||||
if resource in image.get('RepoTags', []):
|
||||
return image['RepoTags']
|
||||
return None
|
||||
return []
|
||||
|
||||
def get_inspect_containers(self, containers):
|
||||
inspect = []
|
||||
|
||||
Reference in New Issue
Block a user