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:
Tim Wiederhake 2020-12-15 17:25:11 +01:00 committed by Michal Privoznik
parent e18546ed13
commit b0c966de9b

View File

@ -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