libvirt/src/conf
Pavel Hrdina e387afeb9a conf: fix title and description for virDomainSetMetadata API
If we pass XML to virDomainDefineXML API with these two elements:

    ...
    <title></title>
    <description></description>
    ...

libvirt correctly ignores these two elements and they will not appear
in the parsed XML.

However, if we use virDomainSetMetadata API and with "" as value for
title or description we will end up with the parsed XML that contains
these empty elements.

Let's fix the behavior of this API to behave the same as
virDomainDefineXML.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1518042

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2019-03-08 14:59:20 +01:00
..
capabilities.c conf: Introduce storage pool functions into capabilities 2019-03-06 11:12:48 -05:00
capabilities.h conf: Introduce storage pool functions into capabilities 2019-03-06 11:12:48 -05:00
cpu_conf.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
cpu_conf.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
device_conf.c conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
device_conf.h conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
domain_addr.c lib: Use more of VIR_STEAL_PTR() 2019-01-28 14:46:58 +01:00
domain_addr.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
domain_audit.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
domain_audit.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
domain_capabilities.c qemu: domcaps: Report disk <enum name="model"> 2019-03-04 11:08:41 -05:00
domain_capabilities.h qemu: domcaps: Report disk <enum name="model"> 2019-03-04 11:08:41 -05:00
domain_conf.c conf: fix title and description for virDomainSetMetadata API 2019-03-08 14:59:20 +01:00
domain_conf.h qemu: Support scsi controller model=virtio-{non-}transitional 2019-03-04 11:08:41 -05:00
domain_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
domain_event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
domain_nwfilter.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
domain_nwfilter.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
interface_conf.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
interface_conf.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
Makefile.inc.am conf: Add storage pool capability formatting 2019-03-06 11:12:48 -05:00
netdev_bandwidth_conf.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
netdev_bandwidth_conf.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
netdev_vlan_conf.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
netdev_vlan_conf.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
netdev_vport_profile_conf.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
netdev_vport_profile_conf.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
network_conf.c conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
network_conf.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
network_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
network_event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
networkcommon_conf.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
networkcommon_conf.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
node_device_conf.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
node_device_conf.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
node_device_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
node_device_event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
node_device_util.c conf: Add new module node_device_util 2018-11-12 16:23:35 +01:00
node_device_util.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
numa_conf.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
numa_conf.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
nwfilter_conf.c Drop some useless comparisons and checks 2019-03-07 09:22:47 +01:00
nwfilter_conf.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
nwfilter_ipaddrmap.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
nwfilter_ipaddrmap.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
nwfilter_params.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
nwfilter_params.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
object_event_private.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
object_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
object_event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
secret_conf.c lib: Use more of VIR_STEAL_PTR() 2019-01-28 14:46:58 +01:00
secret_conf.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
secret_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
secret_event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
snapshot_conf.c snapshot: Add virDomainSnapshotObjListParse 2019-03-07 17:42:07 -06:00
snapshot_conf.h snapshot: Add virDomainSnapshotObjListParse 2019-03-07 17:42:07 -06:00
storage_adapter_conf.c conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
storage_adapter_conf.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
storage_capabilities.c conf: Add storage pool capability formatting 2019-03-06 11:12:48 -05:00
storage_capabilities.h conf: Add storage pool capability formatting 2019-03-06 11:12:48 -05:00
storage_conf.c caps: drop requiredSourceElements from storage pool capabilities 2019-03-07 12:01:09 +01:00
storage_conf.h conf: Add storage pool capability formatting 2019-03-06 11:12:48 -05:00
storage_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
storage_event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virchrdev.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virchrdev.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virdomainobjlist.c util: Rename virFileStripSuffix() to virStringStripSuffix() 2019-03-07 10:10:43 +01:00
virdomainobjlist.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virinterfaceobj.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virinterfaceobj.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnetworkobj.c util: Rename virFileStripSuffix() to virStringStripSuffix() 2019-03-07 10:10:43 +01:00
virnetworkobj.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnodedeviceobj.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virnodedeviceobj.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnwfilterbindingdef.c conf: add support for parsing/formatting virNWFilterBindingDefPtr 2018-06-26 11:22:07 +01:00
virnwfilterbindingdef.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnwfilterbindingobj.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virnwfilterbindingobj.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnwfilterbindingobjlist.c util: Rename virFileStripSuffix() to virStringStripSuffix() 2019-03-07 10:10:43 +01:00
virnwfilterbindingobjlist.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnwfilterobj.c util: Rename virFileStripSuffix() to virStringStripSuffix() 2019-03-07 10:10:43 +01:00
virnwfilterobj.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virsavecookie.c use virXMLNodeNameEqual instead of xmlStrEqual 2017-08-14 14:31:52 +02:00
virsavecookie.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virsecretobj.c Use virStringHasSuffix() where possible 2019-03-07 10:10:49 +01:00
virsecretobj.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virstorageobj.c Use virStringHasSuffix() where possible 2019-03-07 10:10:49 +01:00
virstorageobj.h storage: Process storage pool capabilities 2019-03-06 11:12:48 -05:00