mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-13 01:20:58 +00:00
Send controller images only for qemu, iou and dynamips
This commit is contained in:
parent
1b530bde3f
commit
fe98163bd0
@ -396,6 +396,7 @@ class Compute:
|
|||||||
res = yield from self.http_query("GET", "/{}/images".format(type), timeout=120)
|
res = yield from self.http_query("GET", "/{}/images".format(type), timeout=120)
|
||||||
images = res.json
|
images = res.json
|
||||||
|
|
||||||
|
if type in ["qemu", "dynamips", "iou"]:
|
||||||
for path in scan_for_images(type):
|
for path in scan_for_images(type):
|
||||||
image = os.path.basename(path)
|
image = os.path.basename(path)
|
||||||
if image not in [i['filename'] for i in images]:
|
if image not in [i['filename'] for i in images]:
|
||||||
|
Loading…
Reference in New Issue
Block a user