When you change settings of the GNS3 VM the VM is reloaded and project using it closed

Fix #644
This commit is contained in:
Julien Duponchelle
2016-08-26 14:09:18 +02:00
parent 5289c714f4
commit 8352ff02a1
7 changed files with 87 additions and 25 deletions

View File

@ -494,7 +494,11 @@ class Project:
def close(self, ignore_notification=False):
yield from self.stop_all()
for compute in self._project_created_on_compute:
yield from compute.post("/projects/{}/close".format(self._id))
try:
yield from compute.post("/projects/{}/close".format(self._id))
# We don't care if a compute is down at this step
except aiohttp.errors.ClientOSError:
pass
self._cleanPictures()
self._status = "closed"
if not ignore_notification: