]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorJSONHandleTrayChange: Properly handle if 'devAlias' is missing
authorSergey Mironov <mironov@fintech.ru>
Wed, 11 Oct 2023 08:19:08 +0000 (11:19 +0300)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 11 Oct 2023 12:31:42 +0000 (14:31 +0200)
commit8eb09a2bb984f3550cc87074e57841b86be39601
tree09a1c0f6ec26a51cc1016f24b44046bface9d5bb
parent25685ebe7ce8de72b8833365b9d35d1b4d63e3b5
qemuMonitorJSONHandleTrayChange: Properly handle if 'devAlias' is missing

While qemu is still reporting the 'device' field in the tray even the
code was not ready for the possibility of it missing. Fix the condition
for clearing 'devAlias' if qemu doesn't report the 'device' field.

Signed-off-by: Sergey Mironov <mironov@fintech.ru>
src/qemu/qemu_monitor_json.c