mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-13 04:48:22 +00:00
Make sure nodes send the right notification when started, stopped or suspended.
This commit is contained in:
@ -1036,6 +1036,7 @@ class QemuVM(BaseNode):
|
||||
raise QemuError("Suspending a QEMU VM is not supported")
|
||||
elif vm_status == "running":
|
||||
yield from self._control_vm("stop")
|
||||
self.status = "suspended"
|
||||
log.debug("QEMU VM has been suspended")
|
||||
else:
|
||||
log.info("QEMU VM is not running to be suspended, current status is {}".format(vm_status))
|
||||
|
Reference in New Issue
Block a user