6ae9ed
From 940c4182a5132ec055f8516318353c5a3409e058 Mon Sep 17 00:00:00 2001
6ae9ed
Message-Id: <940c4182a5132ec055f8516318353c5a3409e058@dist-git>
6ae9ed
From: Peter Krempa <pkrempa@redhat.com>
6ae9ed
Date: Wed, 24 Aug 2016 16:11:05 -0400
6ae9ed
Subject: [PATCH] qemu: Improve error message in virDomainGetVcpus
6ae9ed
6ae9ed
https://bugzilla.redhat.com/show_bug.cgi?id=1097930
6ae9ed
https://bugzilla.redhat.com/show_bug.cgi?id=1224341
6ae9ed
6ae9ed
If the VM is offline we can't retrieve the runtime statistical
6ae9ed
information. Pinning could be retrieved but there are separate APIs for
6ae9ed
that.
6ae9ed
6ae9ed
(cherry picked from commit dd976f786cc241be8b62ee44a08ce27158fa386c)
6ae9ed
---
6ae9ed
 src/qemu/qemu_driver.c | 5 ++---
6ae9ed
 1 file changed, 2 insertions(+), 3 deletions(-)
6ae9ed
6ae9ed
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
6ae9ed
index d3cf267..57ca522 100644
6ae9ed
--- a/src/qemu/qemu_driver.c
6ae9ed
+++ b/src/qemu/qemu_driver.c
6ae9ed
@@ -5290,9 +5290,8 @@ qemuDomainGetVcpus(virDomainPtr dom,
6ae9ed
         goto cleanup;
6ae9ed
 
6ae9ed
     if (!virDomainObjIsActive(vm)) {
6ae9ed
-        virReportError(VIR_ERR_OPERATION_INVALID,
6ae9ed
-                       "%s",
6ae9ed
-                       _("cannot list vcpu pinning for an inactive domain"));
6ae9ed
+        virReportError(VIR_ERR_OPERATION_INVALID, "%s",
6ae9ed
+                       _("cannot retrieve vcpu information for inactive domain"));
6ae9ed
         goto cleanup;
6ae9ed
     }
6ae9ed
 
6ae9ed
-- 
6ae9ed
2.10.0
6ae9ed