mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-25 01:38:08 +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
|
@asyncio.coroutine
|
||||||
def close(self):
|
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))
|
yield from compute.post("/projects/{}/close".format(self._id))
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def commit(self):
|
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))
|
yield from compute.post("/projects/{}/commit".format(self._id))
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def delete(self):
|
def delete(self):
|
||||||
for compute in self._computes:
|
for compute in self._project_created_on_compute:
|
||||||
yield from compute.delete("/projects/{}".format(self._id))
|
yield from compute.delete("/projects/{}".format(self._id))
|
||||||
shutil.rmtree(self.path, ignore_errors=True)
|
shutil.rmtree(self.path, ignore_errors=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user