mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Don't use VIR_DOMAIN_XML_SECURE when parsing XML
The VIR_DOMAIN_XML_SECURE flag only has effect on the formatting of XML so should not be passed to virDomainDefParseNode
This commit is contained in:
parent
4d2ebc71ce
commit
4d6ed1bf0b
@ -287,8 +287,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt,
|
||||
def->dom = virDomainDefParseNode(ctxt->node->doc, domainNode,
|
||||
caps, xmlopt,
|
||||
expectedVirtTypes,
|
||||
(VIR_DOMAIN_XML_INACTIVE |
|
||||
VIR_DOMAIN_XML_SECURE));
|
||||
VIR_DOMAIN_XML_INACTIVE);
|
||||
if (!def->dom)
|
||||
goto cleanup;
|
||||
} else {
|
||||
|
@ -3558,7 +3558,7 @@ phypDomainCreateXML(virConnectPtr conn,
|
||||
if (!(def = virDomainDefParseString(xml, phyp_driver->caps,
|
||||
phyp_driver->xmlopt,
|
||||
1 << VIR_DOMAIN_VIRT_PHYP,
|
||||
VIR_DOMAIN_XML_SECURE)))
|
||||
0)))
|
||||
goto err;
|
||||
|
||||
/* checking if this name already exists on this system */
|
||||
|
Loading…
x
Reference in New Issue
Block a user