1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Send controller images only for qemu, iou and dynamips

This commit is contained in:
Julien Duponchelle 2016-06-08 15:59:54 +02:00
parent 1b530bde3f
commit fe98163bd0
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -396,8 +396,9 @@ class Compute:
res = yield from self.http_query("GET", "/{}/images".format(type), timeout=120)
images = res.json
for path in scan_for_images(type):
image = os.path.basename(path)
if image not in [i['filename'] for i in images]:
images.append({"filename": image, "path": image})
if type in ["qemu", "dynamips", "iou"]:
for path in scan_for_images(type):
image = os.path.basename(path)
if image not in [i['filename'] for i in images]:
images.append({"filename": image, "path": image})
return images