Fix creation of an VMware VM failed with invalid JSON. Fixes #2282.

pull/1195/head
grossmj 7 years ago
parent 244a86bcbc
commit 02ad98664f

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

Loading…
Cancel
Save