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 committed by Matt Clay
parent 6f7cd5c307
commit 030858df67

View file

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