mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
secret_driver: allow VIR_SECRET_DEFINE_VALIDATE flag
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9d482a415b
commit
5cb3d4ed6d
@ -220,9 +220,9 @@ secretDefineXML(virConnectPtr conn,
|
||||
virSecretDef *def;
|
||||
virObjectEvent *event = NULL;
|
||||
|
||||
virCheckFlags(0, NULL);
|
||||
virCheckFlags(VIR_SECRET_DEFINE_VALIDATE, NULL);
|
||||
|
||||
if (!(def = virSecretDefParseString(xml, 0)))
|
||||
if (!(def = virSecretDefParseString(xml, flags)))
|
||||
return NULL;
|
||||
|
||||
if (virSecretDefineXMLEnsureACL(conn, def) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user