]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Use old API if remote libvirtd does not support new
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Sep 2011 15:16:45 +0000 (17:16 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 13 Sep 2011 22:55:04 +0000 (16:55 -0600)
commit799912fa05b8c3aa37bd04c57b196755f3f70552
tree9280a125c3a92d4b7ccb434070ea3e7de131bc0b
parent011eeb41307c10c7a2430df2aa751b58ad2da9ae
virsh: Use old API if remote libvirtd does not support new

Commit ffe28ab74b821c916ec4ba8efb5c992454e4bd24 introduced regression
while communicating with older libvirtd command 'domblkstat' used the new
API and did not check for VIR_ERR_RPC error code signalling the remote
server does not support this API and did not fall back to older API.
Thereafter 'domblkstat' ended with "error: unknown procedure: 243".
tools/virsh.c