]> xenbits.xensource.com Git - 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>
Fri, 22 Mar 2013 12:05:46 +0000 (13:05 +0100)
commit7f913c8254beb1d243f80754db3a1498657fba84
tree74468ffc984ed5a6cf4f43c6110a8aefa26c1844
parent70bc623b58b334393fcb9e5700ea8b6a3f17ae27
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
tools/virsh-volume.c