mirror of
https://github.com/GNS3/gns3-server
synced 2025-07-13 10:08:16 +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
|
@asyncio.coroutine
|
||||||
def delete(self):
|
def delete(self):
|
||||||
if self._status == "opened":
|
if self._status != "opened":
|
||||||
yield from self.close()
|
yield from self.open()
|
||||||
yield from self.delete_on_computes()
|
yield from self.delete_on_computes()
|
||||||
|
yield from self.close()
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(self.path)
|
shutil.rmtree(self.path)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user