]> xenbits.xensource.com Git - libvirt.git/commit
virsh: maxvcpus: Always fall back to the old command if domain caps fail
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Dec 2016 08:36:43 +0000 (09:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 9 Dec 2016 14:57:16 +0000 (15:57 +0100)
commitbd4ae4f5e881276b05e48fbd55a29c57cf1a25ff
tree8eb7db4110c7b98200361faeaf78592fe2aa9795
parentb1f916abbce8edb8752884fd87e56b61011c07da
virsh: maxvcpus: Always fall back to the old command if domain caps fail

1ec22be5 added code that detects the maximum cpu count according to
domain capabilities. The code fell back to the old command only if the
API was not supported. If the API fails for other reasons the command
would fail. There's no point in not trying the old API in such case.

https://bugzilla.redhat.com/show_bug.cgi?id=1402690
tools/virsh-host.c