mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
226094fbc4
commit
6f532d7ffc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user