mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
0f889e725e
commit
dd976f786c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue