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

Delete the project on all node where the project is created

This commit is contained in:
Julien Duponchelle 2016-05-16 21:59:40 +02:00
parent a496aaab9e
commit da81b49fdc
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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)