Fix Snapshot restore does not work with IOS routers

Fix https://github.com/GNS3/gns3-gui/issues/1583
This commit is contained in:
Julien Duponchelle
2016-10-18 16:17:49 +02:00
parent 8055547936
commit 19be2d85b7
2 changed files with 3 additions and 2 deletions

View File

@ -584,10 +584,10 @@ class Project:
"""
Delete the project on computes but not on controller
"""
for compute in self._project_created_on_compute:
for compute in list(self._project_created_on_compute):
if compute.id != "local":
yield from compute.delete("/projects/{}".format(self._id))
self._project_created_on_compute = set()
self._project_created_on_compute.remove(compute)
@classmethod
def _get_default_project_directory(cls):