]> xenbits.xensource.com Git - libvirt.git/commit
conf: Remove <metadata> elements with no namespace
authorPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2015 07:58:30 +0000 (09:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 6 Oct 2015 11:36:12 +0000 (13:36 +0200)
commit51a4178f24a7a7a88a36915b8b358a8321e3ef58
tree3dd0939f976ffd7b2d88a36aacc23108a8820f7d
parentbb5fc5c7782f6f80de4f8e7aa3c910b1113957eb
conf: Remove <metadata> elements with no namespace

Our docs state that subelements of <metadata> shall have a namespace
and the medatata APIs expect that too. To avoid inaccessible
<metadata> sub-elements, just remove those that don't conform to the
documentation.

Apart from adding the new condition this patch renames the function and
refactors the code flow to allow the changes.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1245525
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-metadata-duplicate.xml