]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Clear vsh last error during virshCommandOptVolBy
authorJohn Ferlan <jferlan@redhat.com>
Mon, 16 Apr 2018 15:40:23 +0000 (11:40 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 17 Apr 2018 15:19:13 +0000 (11:19 -0400)
commit0d6e8341031ab1b23b89c15574b2b0a08ef3c3b1
treed6e3b8e59af5b89a9c6e8f6420d4eb3bf0323252
parent3527f9dde67460e9f2d50ce52b8dade8c0848e86
virsh: Clear vsh last error during virshCommandOptVolBy

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@redhat.com>
tools/virsh-volume.c