]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix qemuMonitorCreateObjectProps
authorJohn Ferlan <jferlan@redhat.com>
Mon, 18 Jun 2018 11:35:38 +0000 (07:35 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 18 Jun 2018 21:08:38 +0000 (17:08 -0400)
commitd43cedcb8e647063377d2c692b7c541f507ef9e9
treeec50ef3b224fca783bd819bca55c353ac2e4ba7a
parent12f254576177b7ff07bb7d0a2f7910c5d2c7d86c
qemu: Fix qemuMonitorCreateObjectProps

Fix the return value status comparison checking for call to
virJSONValueObjectCreateVArgs introduced by commit id f0a23c0c3.

If a NULL arglist is passed, then a 0 is returned which is a
valid status and we only should fail when the return is < 0.

This resolves an issue seen for "virsh iothreadadd $dom $iothread"
where a "error: An error occurred, but the cause is unknown" error
was generated when trying to hotplug an IOThread to a domain since
qemuDomainHotplugAddIOThread passes a NULL arglist.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor.c