]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: Format <pvpanic/> without address correctly
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Feb 2015 14:28:07 +0000 (15:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Mar 2015 13:22:45 +0000 (14:22 +0100)
commitb39b1397ea6e6155b5e363d456196504093edd07
treed6cb851b8b818159a840c7aee7614063572c271b
parentd196444c49045c7b7636c2a5c58d3dfb6132370f
domain_conf: Format <pvpanic/> without address correctly

We have something like pvpanic device. However, in some cases it does
not have any address assigned, in which case we produce this ugly XML
(still valid though):

  <devices>
    <emulator>/usr/bin/qemu</emulator>
    ...
    <panic>
    </panic>
  </devices>

Lets format "<panic/>" instead.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-panic-no-address.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-panic-no-address.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c