mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
Add VIR_DOMAIN_XML_INACTIVE flag when parsing domain XML
To avoid an error when hitting the <seclabel...> definition * src/security/virt-aa-helper.c: add VIR_DOMAIN_XML_INACTIVE flag to virDomainDefParseString
This commit is contained in:
parent
ba32e11d41
commit
a331b909c5
@ -700,7 +700,8 @@ get_definition(vahControl * ctl, const char *xmlStr)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
ctl->def = virDomainDefParseString(ctl->caps, xmlStr, 0);
|
||||
ctl->def = virDomainDefParseString(ctl->caps, xmlStr,
|
||||
VIR_DOMAIN_XML_INACTIVE);
|
||||
if (ctl->def == NULL) {
|
||||
vah_error(ctl, 0, "could not parse XML");
|
||||
goto exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user