mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
cpu-gather: Ignore shutdown messages from qemu
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e18546ed13
commit
b0c966de9b
@ -98,6 +98,8 @@ def call_qemu(qemu, qmp_cmds):
|
|||||||
response = json.loads(line)
|
response = json.loads(line)
|
||||||
if "return" in response and not response["return"]:
|
if "return" in response and not response["return"]:
|
||||||
continue
|
continue
|
||||||
|
if response.get("event") == "SHUTDOWN":
|
||||||
|
continue
|
||||||
yield response
|
yield response
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user