mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
6423e30828
If there are no source extents the volume XML has an empty <source> element. Remove it if there's nothing in it by using virXMLFormatElement. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
9 lines
193 B
XML
9 lines
193 B
XML
<volume type='network'>
|
|
<name>test2</name>
|
|
<capacity unit='bytes'>1024</capacity>
|
|
<allocation unit='bytes'>0</allocation>
|
|
<target>
|
|
<path>sheepdog:test2</path>
|
|
</target>
|
|
</volume>
|