]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: don't print --(null) in vol-name and vol-pool
authorJán Tomko <jtomko@redhat.com>
Fri, 22 Mar 2013 11:32:32 +0000 (12:32 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 9 May 2013 13:54:32 +0000 (15:54 +0200)
commit7d6abdec6d9a1c8742184cda8717958ae0571957
tree02c3120430c4b86b239a82b12a995765e31e7c04
parent66e8f041f9d088b416db60b325ba2a272053ef5f
virsh: don't print --(null) in vol-name and vol-pool

Don't print the pool option name if it's null.

Before:
virsh # vol-name vol
error: failed to get vol 'vol', specifying --(null) might help
error: Storage volume not found: no storage vol with matching path vol

After:

virsh # vol-name vol
error: failed to get vol 'vol'
error: Storage volume not found: no storage vol with matching path vol

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=924571
(cherry picked from commit 7f913c8254beb1d243f80754db3a1498657fba84)
tools/virsh-volume.c