]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Improve error message in virDomainGetVcpus
authorPeter Krempa <pkrempa@redhat.com>
Mon, 18 Jul 2016 09:21:06 +0000 (11:21 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Aug 2016 06:03:46 +0000 (08:03 +0200)
If the VM is offline we can't retrieve the runtime statistical
information. Pinning could be retrieved but there are separate APIs for
that.

src/qemu/qemu_driver.c

index dbdacbae221d0eca612afa463944d312d5884da9..4a5191f8d6e52d4754acdcd548369bb72f8f07fb 100644 (file)
@@ -5284,9 +5284,8 @@ qemuDomainGetVcpus(virDomainPtr dom,
         goto cleanup;
 
     if (!virDomainObjIsActive(vm)) {
-        virReportError(VIR_ERR_OPERATION_INVALID,
-                       "%s",
-                       _("cannot list vcpu pinning for an inactive domain"));
+        virReportError(VIR_ERR_OPERATION_INVALID, "%s",
+                       _("cannot retrieve vcpu information for inactive domain"));
         goto cleanup;
     }