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

Support IOU image without .bin at the end

This commit is contained in:
Julien Duponchelle 2017-03-29 16:08:13 +02:00
parent 935ca17d7a
commit cfe13e1929
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -58,7 +58,7 @@ def list_images(type):
if filename.endswith(".md5sum") or filename.startswith("."): if filename.endswith(".md5sum") or filename.startswith("."):
continue continue
elif ((filename.endswith(".image") or filename.endswith(".bin")) and type == "dynamips") \ elif ((filename.endswith(".image") or filename.endswith(".bin")) and type == "dynamips") \
or (filename.endswith(".bin") and type == "iou") \ or ((filename.endswith(".bin") or filename.startswith("i86bi")) and type == "iou") \
or (not filename.endswith(".bin") and not filename.endswith(".image") and type == "qemu"): or (not filename.endswith(".bin") and not filename.endswith(".image") and type == "qemu"):
files.add(filename) files.add(filename)