mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Delete the project on all node where the project is created
This commit is contained in:
parent
a496aaab9e
commit
da81b49fdc
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user