Fix delete project on remote compute server

Fix https://github.com/GNS3/gns3-gui/issues/1714
This commit is contained in:
Julien Duponchelle committed 2016-12-12 22:41:43 +01:00
1 parent 1106a1af47
commit 89537204df
1 file changed
+3 -2
+3 -2
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: