From 89537204df603aecadb259f786df95cbfab4ac36 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 12 Dec 2016 22:41:43 +0100 Subject: [PATCH] Fix delete project on remote compute server Fix https://github.com/GNS3/gns3-gui/issues/1714 --- gns3server/controller/project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index f66d7087..9b1a7a68 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -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: