mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-09-02 17:50:04 +03: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:
committed by
Michal Privoznik
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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user