1
0
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:
Julien Duponchelle 2016-12-12 22:41:43 +01:00
parent 1106a1af47
commit 89537204df
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

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