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

Sort image list

Fix https://github.com/GNS3/gns3-gui/issues/2030
This commit is contained in:
Julien Duponchelle 2017-05-05 19:52:45 +02:00
parent 6870749e50
commit 8a6584d90f
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -602,6 +602,7 @@ class Compute:
images.append(local_image) images.append(local_image)
except OSError as e: except OSError as e:
raise ComputeError("Can't list images: {}".format(str(e))) raise ComputeError("Can't list images: {}".format(str(e)))
images.sort()
return images return images
@asyncio.coroutine @asyncio.coroutine