[libvirt-glib] Fix gvir_config_domain_clock_set_variable_offset

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

 



It was creating an extra <clock> node as a child of the "main" one
which is not what was intended
---
 libvirt-gconfig/libvirt-gconfig-domain-clock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libvirt-gconfig/libvirt-gconfig-domain-clock.c b/libvirt-gconfig/libvirt-gconfig-domain-clock.c
index 27d1e67..b28856c 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-clock.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-clock.c
@@ -121,7 +121,7 @@ void gvir_config_domain_clock_set_variable_offset(GVirConfigDomainClock *klock,
 
     g_return_if_fail(GVIR_IS_CONFIG_DOMAIN_CLOCK(klock));
 
-    node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(klock), "clock");
+    node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(klock));
     if (node == NULL)
         return;
 
-- 
1.7.7.3

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