Return empty list if an image has no repo_tags

reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent c5f3df809f
commit e51ea29d8f

@ -820,7 +820,7 @@ class DockerManager(object):
for image in self.client.images(name=image): for image in self.client.images(name=image):
if resource in image.get('RepoTags', []): if resource in image.get('RepoTags', []):
return image['RepoTags'] return image['RepoTags']
return None return []
def get_inspect_containers(self, containers): def get_inspect_containers(self, containers):
inspect = [] inspect = []

Loading…
Cancel
Save