]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Fix xpath queries for retrieving vcpu count
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Oct 2016 13:40:31 +0000 (15:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 12 Oct 2016 15:29:07 +0000 (17:29 +0200)
commit5e61be54d86350ecff84b1ca52cca601bb8cdedc
treee60496e0f002abc24ba246a5c1f995e78b66a70e
parentbe698592555f59b0ab515970abeaa800e15ebd12
virsh: Fix xpath queries for retrieving vcpu count

The fallback code used if virDomainGetVcpusFlags is not supported used
wrong XPath queries and basically did not work at all. Fix them to point
to the <domain> <vcpu> element instead of <vcpus> which was not present
until lately.
tools/virsh-domain.c