]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Report errors if arguments of the schedinfo command are incorrect
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Dec 2012 13:17:52 +0000 (14:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Dec 2012 15:37:10 +0000 (16:37 +0100)
commitbf7209595445782dc106fadaf01d81afc34c4afb
treeb9c604d2817407c57416f30708388e21f81a41db
parent83124357075d86c7a24ea0ce9844e4a1cecabaf5
virsh: Report errors if arguments of the schedinfo command are incorrect

Libvirt's helper API's when called directly don't raise the error so
that virsh remembers it. Subsequent calls to libvirt API's might reset
the error.

In case of schedinfo virDomainFree() in the cleanup section resets the
error when virTypedParameterAssignFromStr() fails.

This patch adds function vshSaveLibvirtError() that can be called after
calling libvirt helper APIs to ensure the error is remembered.
tools/virsh-domain.c
tools/virsh.c
tools/virsh.h