mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Allow to stop a VMware VM from GNS3 even if halted within the VM. Fixes #1118.
This commit is contained in:
parent
06da40cdcd
commit
7cdf23f497
@ -488,11 +488,12 @@ class VMwareVM(BaseVM):
|
|||||||
yield from self._ubridge_hypervisor.stop()
|
yield from self._ubridge_hypervisor.stop()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if self.acpi_shutdown:
|
if (yield from self.is_running()):
|
||||||
# use ACPI to shutdown the VM
|
if self.acpi_shutdown:
|
||||||
yield from self._control_vm("stop", "soft")
|
# use ACPI to shutdown the VM
|
||||||
else:
|
yield from self._control_vm("stop", "soft")
|
||||||
yield from self._control_vm("stop")
|
else:
|
||||||
|
yield from self._control_vm("stop")
|
||||||
finally:
|
finally:
|
||||||
self._started = False
|
self._started = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user