From 6aed064a866beff49639c883d354095f09c0b3ea Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 16 Mar 2020 16:38:23 +1030 Subject: [PATCH] Fix cannot delete Dynamips router the content of the "usage" field. Fixes https://github.com/GNS3/gns3-gui/issues/2947 --- gns3server/compute/dynamips/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/dynamips/__init__.py b/gns3server/compute/dynamips/__init__.py index c7b35147..a996d5f5 100644 --- a/gns3server/compute/dynamips/__init__.py +++ b/gns3server/compute/dynamips/__init__.py @@ -493,7 +493,7 @@ class Dynamips(BaseManager): await vm.set_sparsemem(False) usage = settings.get("usage") - if usage and usage != vm.usage: + if usage is not None and usage != vm.usage: vm.usage = usage # update the configs if needed