]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Allow extracting 'return' section of QMP command in 'qemu-monitor-command'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 11 Dec 2019 13:16:22 +0000 (14:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 10 Feb 2020 16:26:26 +0000 (17:26 +0100)
commit41345f620157cc7cbd7a20303655cf4164028d10
treef10c5ef32ee13da1d8a76e85381d1e24cd796129
parent9860d00004aa783dd978e64d31ab5408960de0a4
virsh: Allow extracting 'return' section of QMP command in 'qemu-monitor-command'

Simplify gathering the actual return value from a passed-through QMP
command when using 'qemu-monitor-command' by adding '--return-value'
switch which just extracts the 'return' section and alternatively
reports an error if the section is not present.

This simplifies gathering of some test data where the full reply would
need to be trimmed just for the actual return value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
docs/manpages/virsh.rst
tools/virsh-domain.c