mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
commit
611193b25a
@ -223,7 +223,7 @@ def _convert_2_1_0(topo, topo_path):
|
|||||||
if node["node_type"] in ("qemu", "vmware", "virtualbox"):
|
if node["node_type"] in ("qemu", "vmware", "virtualbox"):
|
||||||
if "acpi_shutdown" in node["properties"]:
|
if "acpi_shutdown" in node["properties"]:
|
||||||
if node["properties"]["acpi_shutdown"] is True:
|
if node["properties"]["acpi_shutdown"] is True:
|
||||||
node["properties"]["on_close"] = "save_vm_sate"
|
node["properties"]["on_close"] = "save_vm_state"
|
||||||
else:
|
else:
|
||||||
node["properties"]["on_close"] = "power_off"
|
node["properties"]["on_close"] = "power_off"
|
||||||
del node["properties"]["acpi_shutdown"]
|
del node["properties"]["acpi_shutdown"]
|
||||||
|
Loading…
Reference in New Issue
Block a user