]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: domjobinfo: Print also job operation for failed jobs
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Nov 2019 16:36:18 +0000 (17:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Dec 2019 14:26:53 +0000 (15:26 +0100)
commit2a55bcd8da21d68a9d47184e96ed4c6f4d1e7d2e
tree28d91e09394fdf7bf41cf4286430dac23f7edb5d
parent2dae916de467c642a100ae177e80bb7fd7659acd
virsh: domjobinfo: Print also job operation for failed jobs

Printing that a job failed is rather unhelpful. Print at least the
operation which failed.

Achieve this by moving the check whether to print stats later but
replace it with a check which will skip printing of the operation if
there's no job.

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