mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Fix creation of an VMware VM failed with invalid JSON. Fixes #2282.
This commit is contained in:
parent
244a86bcbc
commit
02ad98664f
@ -118,6 +118,10 @@ class Controller:
|
|||||||
vms.append(vm)
|
vms.append(vm)
|
||||||
|
|
||||||
for vm in vms:
|
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()))
|
vm.setdefault("appliance_id", str(uuid.uuid4()))
|
||||||
appliance = Appliance(vm["appliance_id"], vm)
|
appliance = Appliance(vm["appliance_id"], vm)
|
||||||
self._appliances[appliance.id] = appliance
|
self._appliances[appliance.id] = appliance
|
||||||
|
Loading…
Reference in New Issue
Block a user