From da81b49fdc9e2849e80290be64ba4bd8d00b90f3 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 16 May 2016 21:59:40 +0200 Subject: [PATCH] Delete the project on all node where the project is created --- gns3server/controller/project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index d97949c3..48eeb421 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -183,17 +183,17 @@ class Project: @asyncio.coroutine def close(self): - for compute in self._computes: + for compute in self._project_created_on_compute: yield from compute.post("/projects/{}/close".format(self._id)) @asyncio.coroutine def commit(self): - for compute in self._computes: + for compute in self._project_created_on_compute: yield from compute.post("/projects/{}/commit".format(self._id)) @asyncio.coroutine def delete(self): - for compute in self._computes: + for compute in self._project_created_on_compute: yield from compute.delete("/projects/{}".format(self._id)) shutil.rmtree(self.path, ignore_errors=True)