mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
lib: Don't force the key argument when deleting metadata
virDomainSetMetadata when operating on the metadata element was requesting the @key argument to be passed even if @metadata was NULL used to delete the corresponding metadata element. This is not needed as the key is only used when adding the element and matching is done via the XML namespace.
This commit is contained in:
parent
73bfac0e71
commit
3b6784d119
@ -10739,7 +10739,8 @@ virDomainSetMetadata(virDomainPtr domain,
|
||||
break;
|
||||
case VIR_DOMAIN_METADATA_ELEMENT:
|
||||
virCheckNonNullArgGoto(uri, error);
|
||||
virCheckNonNullArgGoto(key, error);
|
||||
if (metadata)
|
||||
virCheckNonNullArgGoto(key, error);
|
||||
break;
|
||||
default:
|
||||
/* For future expansion */
|
||||
|
Loading…
Reference in New Issue
Block a user