Return empty list if an image has no repo_tags

pull/18777/head
Toshio Kuratomi 10 years ago committed by Matt Clay
parent 6f7cd5c307
commit 030858df67

@ -824,7 +824,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