Return empty list if an image has no repo_tags
This commit is contained in:
parent
6f7cd5c307
commit
030858df67
1 changed files with 1 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue