[libvirt] [PATCH] virsh: Clear vsh last error during virshCommandOptVolBy
Peter Krempa
pkrempa at redhat.com
Tue Apr 17 07:19:19 UTC 2018
On Mon, Apr 16, 2018 at 11:55:51 -0400, John Ferlan wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=1529256
>
> If one of the virStorageVolLookupBy{Key|Name|Path} succeeds and
> we have a @vol, then clear the last libvirt error; otherwise, a
> subsequent "other" failure may cause vshReportError to erroneously
> report the wrong error as well as a reported 'vshError' error that
> caused the failure.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> tools/virsh-volume.c | 2 ++
> 1 file changed, 2 insertions(+)
ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180417/b1b59568/attachment-0001.sig>
More information about the libvir-list
mailing list