[libvirt] [PATCH 02/19] virsh: Allow extracting 'return' section of QMP command in 'qemu-monitor-command'
Eric Blake
eblake at redhat.com
Thu Dec 12 18:23:48 UTC 2019
On 12/12/19 11:18 AM, Peter Krempa wrote:
> 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 at redhat.com>
> ---
> docs/manpages/virsh.rst | 5 ++++-
> tools/virsh-domain.c | 44 ++++++++++++++++++++++++++++++++---------
> 2 files changed, 39 insertions(+), 10 deletions(-)
Nice use-case.
Reviewed-by: Eric Blake <eblake at redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
More information about the libvir-list
mailing list