[libvirt-glib 10/20] gconfig: Remove 'socket' attribute from gvir_config_domain_graphics_{spice, vnc}_set_listen

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

 



This is a legacy attribute which is going to conflict with listen nodes
when we set some.
---
 libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c | 2 ++
 libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c b/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
index 88dd757..051ff87 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
@@ -175,6 +175,8 @@ void gvir_config_domain_graphics_spice_set_listen(GVirConfigDomainGraphicsSpice
 
     gvir_config_object_remove_attribute (GVIR_CONFIG_OBJECT(graphics),
                                          "listen");
+    gvir_config_object_remove_attribute (GVIR_CONFIG_OBJECT(graphics),
+                                         "socket");
     gvir_config_object_delete_children (GVIR_CONFIG_OBJECT (graphics),
                                         "listen", NULL);
 
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c b/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c
index 17fce67..3bc5b8c 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c
@@ -138,6 +138,8 @@ void gvir_config_domain_graphics_vnc_set_listen(GVirConfigDomainGraphicsVnc *gra
 
     gvir_config_object_remove_attribute (GVIR_CONFIG_OBJECT(graphics),
                                         "listen");
+    gvir_config_object_remove_attribute (GVIR_CONFIG_OBJECT(graphics),
+                                         "socket");
     gvir_config_object_delete_children (GVIR_CONFIG_OBJECT (graphics),
                                         "listen", NULL);
 
-- 
2.7.4

--
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]