From dd976f786cc241be8b62ee44a08ce27158fa386c Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 18 Jul 2016 11:21:06 +0200 Subject: [PATCH] qemu: Improve error message in virDomainGetVcpus 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index dbdacbae22..4a5191f8d6 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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; }