]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Remove duplicate entries in <metadata> by namespace
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Mar 2015 16:50:59 +0000 (17:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2015 15:24:34 +0000 (16:24 +0100)
commit7909300498fc216bbf8fcafb2b770799fb8daf2c
treeb16cd777576c0f0a26da08fa4ab7ab3aa0a7c32d
parent5aee81a0cb60308b8614ee37c0b69c1dde1f00d8
conf: Remove duplicate entries in <metadata> by namespace

Since the APIs support just one element per namespace and while
modifying an element all duplicates would be removed, let's do this
right away in the post parse callback.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1190590
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-metadata-duplicate.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-metadata-duplicate.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c