From fe98163bd0ec2cc5d88e3af473de1e7f8264411b Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 8 Jun 2016 15:59:54 +0200 Subject: [PATCH] Send controller images only for qemu, iou and dynamips --- gns3server/controller/compute.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index 8b8116ea..1a38a194 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -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