mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-12 09:00:57 +00:00
Fix delete project on remote compute server
Fix https://github.com/GNS3/gns3-gui/issues/1714
This commit is contained in:
parent
1106a1af47
commit
89537204df
@ -573,9 +573,10 @@ class Project:
|
||||
|
||||
@asyncio.coroutine
|
||||
def delete(self):
|
||||
if self._status == "opened":
|
||||
yield from self.close()
|
||||
if self._status != "opened":
|
||||
yield from self.open()
|
||||
yield from self.delete_on_computes()
|
||||
yield from self.close()
|
||||
try:
|
||||
shutil.rmtree(self.path)
|
||||
except OSError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user