1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-08-02 11:58:29 +00:00

Do not use builtin name.

This commit is contained in:
grossmj 2017-10-13 17:51:19 +08:00
parent 02ad98664f
commit 4f13c63a52

View File

@ -119,9 +119,9 @@ class Controller:
for vm in vms: for vm in vms:
# remove deprecated properties # remove deprecated properties
for property in vm.copy(): for prop in vm.copy():
if property in ["enable_remote_console", "use_ubridge"]: if prop in ["enable_remote_console", "use_ubridge"]:
del vm[property] del vm[prop]
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