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.
This commit is contained in:
Peter Krempa 2016-07-18 11:21:06 +02:00
parent 0f889e725e
commit dd976f786c
1 changed files with 2 additions and 3 deletions

View 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;
}