[libvirt] Issue with GVirDomainDisk setters

28 Dec
2011
28 Dec
'11
1:34 a.m.
Hi Christophe, I just found out a small issue in GVirDomainDisk setter functions: they always add a new attribute on each call rather than overriding existing value. For example this Vala code: disk.set_guest_device_type (DomainDiskGuestDeviceType.DISK); disk.set_target_dev ("sdb"); ... disk.set_guest_device_type (DomainDiskGuestDeviceType.FLOPPY); disk.set_target_dev ("fd"); Will generate following XML: <disk type="file" device="disk" device="floppy"> <target dev="sdb" dev="fd"/> ... </disk> -- Regards, Zeeshan Ali (Khattak) FSF member#5124
5008
Age (days ago)
5008
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zeeshan Ali (Khattak)