Fix a crash with some docker images

Fix #861
pull/874/head
Julien Duponchelle 8 years ago
parent 41d32a5f71
commit 666461277d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -157,7 +157,8 @@ class Docker(BaseManager):
"""
images = []
for image in (yield from self.query("GET", "images/json", params={"all": 0})):
for tag in image['RepoTags']:
if tag != "<none>:<none>":
images.append({'image': tag})
if image['RepoTags']:
for tag in image['RepoTags']:
if tag != "<none>:<none>":
images.append({'image': tag})
return sorted(images, key=lambda i: i['image'])

Loading…
Cancel
Save