]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Pass vshControl to all vshCommandOpt*() calls
authorAndrea Bolognani <abologna@redhat.com>
Tue, 2 Jun 2015 09:17:28 +0000 (11:17 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 2 Jun 2015 13:20:31 +0000 (09:20 -0400)
commitbe6ff4da95aff10c6bcea80c9d178252d180e546
treec6d019c95ddad827695973de1d4c3791f9b237f5
parent5eaca29fbb103f1d3330e0982c5c18548d37d108
virsh: Pass vshControl to all vshCommandOpt*() calls

This will allow us to use vshError() to report errors from inside
vshCommandOpt*(), instead of replicating the same logic and error
messages all over the place.

We also have more context inside the vshCommandOpt*() functions,
for example the actual value used on the command line, which means
we can produce more detailed error messages.

vshCommandOptBool() is the exception here, because it's explicitly
designed not to report any error.
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-host.c
tools/virsh-interface.c
tools/virsh-network.c
tools/virsh-nodedev.c
tools/virsh-snapshot.c
tools/virsh-volume.c
tools/virsh.c
tools/virsh.h