Fix cannot delete Dynamips router the content of the "usage" field. Fixes https://github.com/GNS3/gns3-gui/issues/2947

pull/1731/head
grossmj 4 years ago
parent 615cffd9ac
commit 6aed064a86

@ -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

Loading…
Cancel
Save