mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +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;
|
virSecretDef *def;
|
||||||
virObjectEvent *event = NULL;
|
virObjectEvent *event = NULL;
|
||||||
|
|
||||||
virCheckFlags(0, NULL);
|
virCheckFlags(VIR_SECRET_DEFINE_VALIDATE, NULL);
|
||||||
|
|
||||||
if (!(def = virSecretDefParseString(xml, 0)))
|
if (!(def = virSecretDefParseString(xml, flags)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (virSecretDefineXMLEnsureACL(conn, def) < 0)
|
if (virSecretDefineXMLEnsureACL(conn, def) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user