From 6f532d7ffc3f51e6ac6e94edd90e24d41700f1ad Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 21 Jun 2019 08:29:22 +0200 Subject: [PATCH] qemu: Use VIR_ERR_DEPRECATED in QemuAttach and DomainXMLFromNative stubs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/qemu/qemu_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index ec08dd939e..d6ab134196 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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; }