mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Support IOU image without .bin at the end
This commit is contained in:
parent
935ca17d7a
commit
cfe13e1929
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user