]> xenbits.xensource.com Git - libvirt.git/commit
qemu: guestinfo: handle unsupported agent commands
authorJonathon Jongsma <jjongsma@redhat.com>
Tue, 27 Aug 2019 20:35:54 +0000 (15:35 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 29 Aug 2019 10:03:23 +0000 (12:03 +0200)
commita931486a97aef6188eb612fac795d4a8f6038c97
tree326487e2adb136ba3b7797a5f49398dd050b6247
parent56cac62bfd216307b6fa30a1ce351b66d4da0452
qemu: guestinfo: handle unsupported agent commands

When we're collecting guest information, older agents may not support
all agent commands. In the case where the user requested all info
types (i.e. types == 0), ignore unsupported command errors and gather as
much information as possible. If the agent command failed for some other
reason, or if the user explciitly requested a specific info type (i.e.
types != 0), abort on the first error.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c
src/qemu/qemu_driver.c
tests/qemuagenttest.c