[libvirt] [libvirt-glib 2/2] Overwrite attributes in GVirObject::set_attribute

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Jan 4 19:52:59 UTC 2012


On Tue, Jan 3, 2012 at 11:08 AM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> Zeeshan reported an issue where calling
> gvir_config_domain_disk_set_target_dev several times would result in
> duplicated 'dev' attributes in the resulting XML instead of overwriting
> the existing 'dev' attribute. Since there are no cases interesting to
> libvirt-gconfig where having several attributes with the same name is
> useful, when calling gvir_config_object_set_attribute*, we can just
> remove attributes with the same names as the one we are setting.

  And Zeeshan tested this and ACKs. :)

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the libvir-list mailing list