提交 6f532d7f 编写于 作者: P Peter Krempa

qemu: Use VIR_ERR_DEPRECATED in QemuAttach and DomainXMLFromNative stubs

We've deprecated qemuConnectDomainXMLFromNative qemuDomainQemuAttach.
Switch the error code from VIR_ERR_OPERATION_UNSUPPORTED to the new
VIR_ERR_DEPRECATED.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 226094fb
......@@ -7327,7 +7327,7 @@ qemuConnectDomainXMLFromNative(virConnectPtr conn,
if (virConnectDomainXMLFromNativeEnsureACL(conn) < 0)
return NULL;
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
virReportError(VIR_ERR_DEPRECATED, "%s",
_("converting arbitrary QEMU command lines to libvirt domain XML is no longer supported"));
return NULL;
}
......@@ -16779,7 +16779,7 @@ qemuDomainQemuAttach(virConnectPtr conn ATTRIBUTE_UNUSED,
{
virCheckFlags(0, NULL);
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
virReportError(VIR_ERR_DEPRECATED, "%s",
_("attaching to a QEMU process started outside of libvirt is no longer supported"));
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册