mirror of https://gitee.com/openkylin/libvirt.git
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)
|
||||
if "return" in response and not response["return"]:
|
||||
continue
|
||||
if response.get("event") == "SHUTDOWN":
|
||||
continue
|
||||
yield response
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue