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:
Jamie Strandboge 2010-04-06 16:47:33 +02:00 committed by Daniel Veillard
parent ba32e11d41
commit a331b909c5

View File

@ -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;