Return empty list if an image has no repo_tags

This commit is contained in:
Toshio Kuratomi 2015-04-30 17:44:05 -07:00
parent c5f3df809f
commit e51ea29d8f

View file

@ -820,7 +820,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 = []