From 02ad98664f1e018a22cc33896311821a55bd05ca Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 13 Oct 2017 17:50:23 +0800 Subject: [PATCH] Fix creation of an VMware VM failed with invalid JSON. Fixes #2282. --- gns3server/controller/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 8a5d999d..75dc2dfc 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -118,6 +118,10 @@ class Controller: vms.append(vm) for vm in vms: + # remove deprecated properties + for property in vm.copy(): + if property in ["enable_remote_console", "use_ubridge"]: + del vm[property] vm.setdefault("appliance_id", str(uuid.uuid4())) appliance = Appliance(vm["appliance_id"], vm) self._appliances[appliance.id] = appliance