[PATCH 2/3] qemu: Use VIR_ERR_DEPRECATED in QemuAttach and DomainXMLFromNative stubs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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;
 }
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux