qemu: Allow inactive domains in qemuDomainGetControlInfo()

Inactive domains can still be stuck in a job or other problems. Add a
way to detect it.
This commit is contained in:
Peter Krempa 2015-02-19 12:00:27 +01:00
parent 31a55c7cb4
commit 3923d98e05

View File

@ -2689,12 +2689,6 @@ qemuDomainGetControlInfo(virDomainPtr dom,
if (virDomainGetControlInfoEnsureACL(dom->conn, vm->def) < 0)
goto cleanup;
if (!virDomainObjIsActive(vm)) {
virReportError(VIR_ERR_OPERATION_INVALID,
"%s", _("domain is not running"));
goto cleanup;
}
priv = vm->privateData;
memset(info, 0, sizeof(*info));