1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix a crash with some docker images

Fix #861
This commit is contained in:
Julien Duponchelle 2017-01-10 10:09:34 +01:00
parent 41d32a5f71
commit 666461277d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

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