1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Fix an import error when you have no GNS3 VM

This commit is contained in:
Julien Duponchelle 2016-05-27 16:08:37 +02:00
parent e497e98ca1
commit 8e3e3c08f8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -405,7 +405,7 @@ class ProjectHandler:
if not packet:
break
temp.write(packet)
project.import_zip(temp, gns3vm=bool(request.GET.get("gns3vm", "1")))
project.import_zip(temp, gns3vm=bool(int(request.GET.get("gns3vm", "1"))))
except OSError as e:
raise aiohttp.web.HTTPInternalServerError(text="Could not import the project: {}".format(e))