From 017202d151052f63d21d612e0c8d7cf469663ae2 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 16 Aug 2016 13:30:10 +0200 Subject: [PATCH] Allow to delete a non opened project --- gns3server/controller/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index 3172a3b8..eb7abc9c 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -514,10 +514,10 @@ class Project: except OSError as e: log.warning(str(e)) - @open_required @asyncio.coroutine def delete(self): - yield from self.close() + if self._status == "opened": + yield from self.close() yield from self.delete_on_computes() shutil.rmtree(self.path, ignore_errors=True)