This parameter is now unused and can be removed entirely.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
{
bhyveConnPtr privconn = domain->conn->privateData;
virDomainObjPtr vm;
- virCapsPtr caps = NULL;
char *ret = NULL;
virCheckFlags(VIR_DOMAIN_XML_COMMON_FLAGS, NULL);
if (virDomainGetXMLDescEnsureACL(domain->conn, vm->def, flags) < 0)
goto cleanup;
- caps = bhyveDriverGetCapabilities(privconn);
- if (!caps)
- goto cleanup;
-
- ret = virDomainDefFormat(vm->def, privconn->xmlopt, caps,
+ ret = virDomainDefFormat(vm->def, privconn->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
- virObjectUnref(caps);
cleanup:
virDomainObjEndAPI(&vm);
return ret;
char *xml = NULL;
virDomainDefPtr def = NULL;
bhyveConnPtr privconn = conn->privateData;
- virCapsPtr capabilities = NULL;
unsigned caps = bhyveDriverGetCaps(conn);
virCheckFlags(0, NULL);
if (virConnectDomainXMLFromNativeEnsureACL(conn) < 0)
return NULL;
- capabilities = bhyveDriverGetCapabilities(privconn);
- if (!capabilities)
- return NULL;
-
if (STRNEQ(nativeFormat, BHYVE_CONFIG_FORMAT_ARGV)) {
virReportError(VIR_ERR_INVALID_ARG,
_("unsupported config type %s"), nativeFormat);
if (def == NULL)
goto cleanup;
- xml = virDomainDefFormat(def, privconn->xmlopt, capabilities, 0);
+ xml = virDomainDefFormat(def, privconn->xmlopt, 0);
cleanup:
- virObjectUnref(capabilities);
virDomainDefFree(def);
return xml;
}
static int
virDomainCheckpointDefFormatInternal(virBufferPtr buf,
virDomainCheckpointDefPtr def,
- virCapsPtr caps,
+ virCapsPtr caps G_GNUC_UNUSED,
virDomainXMLOptionPtr xmlopt,
unsigned int flags)
{
if (!(flags & VIR_DOMAIN_CHECKPOINT_FORMAT_NO_DOMAIN) &&
virDomainDefFormatInternal(def->parent.dom, xmlopt,
- caps, buf, domainflags) < 0)
+ buf, domainflags) < 0)
goto error;
virBufferAdjustIndent(buf, -2);
error:
virErrorPreserveLast(&err);
- strSrc = virDomainDefFormat(src, xmlopt, NULL, 0);
- strDst = virDomainDefFormat(dst, xmlopt, NULL, 0);
+ strSrc = virDomainDefFormat(src, xmlopt, 0);
+ strDst = virDomainDefFormat(dst, xmlopt, 0);
VIR_DEBUG("XMLs that failed stability check were: src=\"%s\", dst=\"%s\"",
NULLSTR(strSrc), NULLSTR(strDst));
int
virDomainDefFormatInternal(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
virBufferPtr buf,
unsigned int flags)
{
- return virDomainDefFormatInternalSetRootName(def, xmlopt, caps, buf,
+ return virDomainDefFormatInternalSetRootName(def, xmlopt, buf,
"domain", flags);
}
int
virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps G_GNUC_UNUSED,
virBufferPtr buf,
const char *rootname,
unsigned int flags)
char *
virDomainDefFormat(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
unsigned int flags)
{
virBuffer buf = VIR_BUFFER_INITIALIZER;
virCheckFlags(VIR_DOMAIN_DEF_FORMAT_COMMON_FLAGS, NULL);
- if (virDomainDefFormatInternal(def, xmlopt, caps, &buf, flags) < 0)
+ if (virDomainDefFormatInternal(def, xmlopt, &buf, flags) < 0)
return NULL;
return virBufferContentAndReset(&buf);
char *
virDomainObjFormat(virDomainObjPtr obj,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
unsigned int flags)
{
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
xmlopt->privateData.format(&buf, obj) < 0)
goto error;
- if (virDomainDefFormatInternal(obj->def, xmlopt, caps, &buf, flags) < 0)
+ if (virDomainDefFormatInternal(obj->def, xmlopt, &buf, flags) < 0)
goto error;
virBufferAdjustIndent(&buf, -2);
int
virDomainDefSave(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
+ virCapsPtr caps G_GNUC_UNUSED,
const char *configDir)
{
g_autofree char *xml = NULL;
- if (!(xml = virDomainDefFormat(def, xmlopt, caps, VIR_DOMAIN_DEF_FORMAT_SECURE)))
+ if (!(xml = virDomainDefFormat(def, xmlopt, VIR_DOMAIN_DEF_FORMAT_SECURE)))
return -1;
return virDomainDefSaveXML(def, configDir, xml);
int
virDomainObjSave(virDomainObjPtr obj,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
+ virCapsPtr caps G_GNUC_UNUSED,
const char *statusDir)
{
unsigned int flags = (VIR_DOMAIN_DEF_FORMAT_SECURE |
g_autofree char *xml = NULL;
- if (!(xml = virDomainObjFormat(obj, xmlopt, caps, flags)))
+ if (!(xml = virDomainObjFormat(obj, xmlopt, flags)))
return -1;
return virDomainDefSaveXML(obj->def, statusDir, xml);
* snapshots). */
virDomainDefPtr
virDomainDefCopy(virDomainDefPtr src,
- virCapsPtr caps,
+ virCapsPtr caps G_GNUC_UNUSED,
virDomainXMLOptionPtr xmlopt,
void *parseOpaque,
bool migratable)
format_flags |= VIR_DOMAIN_DEF_FORMAT_INACTIVE | VIR_DOMAIN_DEF_FORMAT_MIGRATABLE;
/* Easiest to clone via a round-trip through XML. */
- if (!(xml = virDomainDefFormat(src, xmlopt, caps, format_flags)))
+ if (!(xml = virDomainDefFormat(src, xmlopt, format_flags)))
return NULL;
return virDomainDefParseString(xml, caps, xmlopt, parseOpaque, parse_flags);
char *virDomainDefFormat(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
unsigned int flags)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
ATTRIBUTE_NONNULL(3);
char *virDomainObjFormat(virDomainObjPtr obj,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
unsigned int flags)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
ATTRIBUTE_NONNULL(3);
int virDomainDefFormatInternal(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
virBufferPtr buf,
unsigned int flags)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
int virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
virDomainXMLOptionPtr xmlopt,
- virCapsPtr caps,
virBufferPtr buf,
const char *rootname,
unsigned int flags)
virDomainSnapshotDefFormatInternal(virBufferPtr buf,
const char *uuidstr,
virDomainSnapshotDefPtr def,
- virCapsPtr caps,
+ virCapsPtr caps G_GNUC_UNUSED,
virDomainXMLOptionPtr xmlopt,
unsigned int flags)
{
if (def->parent.dom) {
if (virDomainDefFormatInternal(def->parent.dom, xmlopt,
- caps, buf, domainflags) < 0)
+ buf, domainflags) < 0)
goto error;
} else if (uuidstr) {
virBufferAddLit(buf, "<domain>\n");
if (def->parent.inactiveDom) {
if (virDomainDefFormatInternalSetRootName(def->parent.inactiveDom, xmlopt,
- caps, buf, "inactiveDomain",
+ buf, "inactiveDomain",
domainflags) < 0)
goto error;
}
if (powerState != esxVI_VirtualMachinePowerState_PoweredOff)
def->id = id;
- xml = virDomainDefFormat(def, priv->xmlopt, priv->caps,
+ xml = virDomainDefFormat(def, priv->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
}
def = virVMXParseConfig(&ctx, priv->xmlopt, priv->caps, nativeConfig);
if (def)
- xml = virDomainDefFormat(def, priv->xmlopt, priv->caps,
+ xml = virDomainDefFormat(def, priv->xmlopt,
VIR_DOMAIN_DEF_FORMAT_INACTIVE);
virDomainDefFree(def);
/* FIXME: devices section is totally missing */
/* XXX xmlopts must be non-NULL */
- xml = virDomainDefFormat(def, NULL, NULL,
+ xml = virDomainDefFormat(def, NULL,
virDomainDefFormatConvertXMLFlags(flags));
cleanup:
/* now that we know it's stopped call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
/* we can't stop the operation even if the script raised an error */
ignore_value(virHookCall(VIR_HOOK_DRIVER_LIBXL, vm->def->name,
/* The "release" hook cleans up additional resources */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
/* we can't stop the operation even if the script raised an error */
ignore_value(virHookCall(VIR_HOOK_DRIVER_LIBXL, vm->def->name,
/* Run an early hook to set-up missing devices */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
hookret = virHookCall(VIR_HOOK_DRIVER_LIBXL, vm->def->name,
/* now that we know it is about to start call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
hookret = virHookCall(VIR_HOOK_DRIVER_LIBXL, vm->def->name,
libxlDomainCreateChannelPTY(vm->def, cfg->ctx);
#endif
- if ((dom_xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0)) == NULL)
+ if ((dom_xml = virDomainDefFormat(vm->def, driver->xmlopt, 0)) == NULL)
goto destroy_dom;
if (libxl_userdata_store(cfg->ctx, domid, "libvirt-xml",
/* finally we can call the 'started' hook script if any */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
hookret = virHookCall(VIR_HOOK_DRIVER_LIBXL, vm->def->name,
/* now that we know it's reconnected call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LIBXL) &&
STRNEQ("Domain-0", vm->def->name)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
/* we can't stop the operation even if the script raised an error */
goto cleanup;
}
- if ((xml = virDomainDefFormat(vm->def, driver->xmlopt, cfg->caps, 0)) == NULL)
+ if ((xml = virDomainDefFormat(vm->def, driver->xmlopt, 0)) == NULL)
goto cleanup;
xml_len = strlen(xml) + 1;
else
def = vm->def;
- ret = virDomainDefFormat(def, driver->xmlopt, cfg->caps,
+ ret = virDomainDefFormat(def, driver->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
cleanup:
goto cleanup;
}
- xml = virDomainDefFormat(def, driver->xmlopt, cfg->caps, VIR_DOMAIN_DEF_FORMAT_INACTIVE);
+ xml = virDomainDefFormat(def, driver->xmlopt, VIR_DOMAIN_DEF_FORMAT_INACTIVE);
cleanup:
virDomainDefFree(def);
if (!libxlDomainMigrationIsAllowed(def))
goto endjob;
- xml = virDomainDefFormat(def, driver->xmlopt, cfg->caps, VIR_DOMAIN_DEF_FORMAT_SECURE);
+ xml = virDomainDefFormat(def, driver->xmlopt, VIR_DOMAIN_DEF_FORMAT_SECURE);
/* Valid xml means success! EndJob in the confirm phase */
if (xml)
goto cleanup;
char *xml;
int hookret;
- if (!(xml = virDomainDefFormat(*def, driver->xmlopt, cfg->caps,
+ if (!(xml = virDomainDefFormat(*def, driver->xmlopt,
VIR_DOMAIN_XML_SECURE |
VIR_DOMAIN_XML_MIGRATABLE)))
return -1;
ret = virDomainDefFormat((flags & VIR_DOMAIN_XML_INACTIVE) &&
vm->newDef ? vm->newDef : vm->def,
- driver->xmlopt, driver->caps,
+ driver->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
cleanup:
if (!(def = lxcParseConfigString(nativeConfig, caps, driver->xmlopt)))
goto cleanup;
- xml = virDomainDefFormat(def, driver->xmlopt, caps, 0);
+ xml = virDomainDefFormat(def, driver->xmlopt, 0);
cleanup:
virObjectUnref(caps);
/* now that we know it's stopped call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
/* we can't stop the operation even if the script raised an error */
virHookCall(VIR_HOOK_DRIVER_LXC, vm->def->name,
/* The "release" hook cleans up additional resources */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
/* we can't stop the operation even if the script raised an error */
virHookCall(VIR_HOOK_DRIVER_LXC, vm->def->name,
/* Run an early hook to set-up missing devices */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
hookret = virHookCall(VIR_HOOK_DRIVER_LXC, vm->def->name,
/* now that we know it is about to start call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
hookret = virHookCall(VIR_HOOK_DRIVER_LXC, vm->def->name,
/* finally we can call the 'started' hook script if any */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
hookret = virHookCall(VIR_HOOK_DRIVER_LXC, vm->def->name,
/* now that we know it's reconnected call the hook if present */
if (virHookPresent(VIR_HOOK_DRIVER_LXC)) {
- char *xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps, 0);
+ char *xml = virDomainDefFormat(vm->def, driver->xmlopt, 0);
int hookret;
/* we can't stop the operation even if the script raised an error */
if (!(vm = openvzDomObjFromDomain(driver, dom->uuid)))
return NULL;
- ret = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps,
+ ret = virDomainDefFormat(vm->def, driver->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
virDomainObjEndAPI(&vm);
goto cleanup;
}
- xml = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps,
+ xml = virDomainDefFormat(vm->def, driver->xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE);
cleanup:
if (virDomainDefSetVcpus(&def, vcpus) < 0)
goto err;
- return virDomainDefFormat(&def, phyp_driver->xmlopt, phyp_driver->caps,
+ return virDomainDefFormat(&def, phyp_driver->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
err:
}
format:
- ret = virDomainDefFormatInternal(def, driver->xmlopt, caps, buf,
+ ret = virDomainDefFormatInternal(def, driver->xmlopt, buf,
virDomainDefFormatConvertXMLFlags(flags));
cleanup:
char *xml = NULL;
virCommandPtr cmd = NULL;
- xml = virDomainDefFormat(def, NULL, NULL, VIR_DOMAIN_DEF_FORMAT_SECURE);
+ xml = virDomainDefFormat(def, NULL, VIR_DOMAIN_DEF_FORMAT_SECURE);
if (!xml)
goto cleanup;
int fd = -1;
g_autofree char *xml = NULL;
- xml = virDomainDefFormat(def, driver->xmlopt, driver->caps,
+ xml = virDomainDefFormat(def, driver->xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE);
if (xml == NULL) {
if ((fd = testDomainSaveImageOpen(privconn, path, &def)) < 0)
goto cleanup;
- ret = virDomainDefFormat(def, privconn->xmlopt, privconn->caps,
+ ret = virDomainDefFormat(def, privconn->xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE);
cleanup:
def = (flags & VIR_DOMAIN_XML_INACTIVE) &&
privdom->newDef ? privdom->newDef : privdom->def;
- ret = virDomainDefFormat(def, privconn->xmlopt, privconn->caps,
+ ret = virDomainDefFormat(def, privconn->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
virDomainObjEndAPI(&privdom);
/* dump USB devices/filters if active */
vboxHostDeviceGetXMLDesc(data, def, machine);
- ret = virDomainDefFormat(def, data->xmlopt, data->caps,
+ ret = virDomainDefFormat(def, data->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
cleanup:
if (!(vm = vmwareDomObjFromDomain(driver, dom->uuid)))
return NULL;
- ret = virDomainDefFormat(vm->def, driver->xmlopt, driver->caps,
+ ret = virDomainDefFormat(vm->def, driver->xmlopt,
virDomainDefFormatConvertXMLFlags(flags));
virDomainObjEndAPI(&vm);
def = virVMXParseConfig(&ctx, driver->xmlopt, driver->caps, nativeConfig);
if (def != NULL)
- xml = virDomainDefFormat(def, driver->xmlopt, driver->caps,
+ xml = virDomainDefFormat(def, driver->xmlopt,
VIR_DOMAIN_DEF_FORMAT_INACTIVE);
virDomainDefFree(def);
def = (flags & VIR_DOMAIN_XML_INACTIVE) &&
dom->newDef ? dom->newDef : dom->def;
- ret = virDomainDefFormat(def, driver->xmlopt, privconn->driver->caps, flags);
+ ret = virDomainDefFormat(def, driver->xmlopt, flags);
cleanup:
virDomainObjEndAPI(&dom);
| VZ_MIGRATION_COOKIE_DOMAIN_NAME) < 0)
return NULL;
- return virDomainDefFormat(dom->def, driver->xmlopt, driver->caps,
+ return virDomainDefFormat(dom->def, driver->xmlopt,
VIR_DOMAIN_XML_MIGRATABLE);
}
goto fail;
}
- if (vmdef && !(actualxml = virDomainDefFormat(vmdef, driver.caps, 0)))
+ if (vmdef && !(actualxml = virDomainDefFormat(vmdef, driver.xmlopt, 0)))
goto fail;
if (vmdef && virTestCompareToFile(actualxml, xmlfile) < 0)
if (testSanitizeDef(vmdef) < 0)
goto fail;
- if (!(actualxml = virDomainDefFormat(vmdef, driver->xmlopt, driver->caps, 0)))
+ if (!(actualxml = virDomainDefFormat(vmdef, driver->xmlopt, 0)))
goto fail;
if (virTestCompareToFile(actualxml, xmlfile) < 0)
goto cleanup;
}
- actual = virDomainDefFormat(def, driver.xmlopt, driver.caps, VIR_DOMAIN_DEF_FORMAT_INACTIVE);
+ actual = virDomainDefFormat(def, driver.xmlopt, VIR_DOMAIN_DEF_FORMAT_INACTIVE);
if (actual == NULL) {
fprintf(stderr, "ERROR: %s\n", virGetLastErrorMessage());
char *actual;
int ret;
- actual = virDomainDefFormat(vm->def, driver.xmlopt, driver.caps,
+ actual = virDomainDefFormat(vm->def, driver.xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE);
if (!actual)
return -1;
char *configXML = NULL;
if (data->file_xml_res_live) {
- if (!(activeXML = virDomainDefFormat(data->vm->def, driver.xmlopt, driver.caps,
+ if (!(activeXML = virDomainDefFormat(data->vm->def, driver.xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE)))
goto cleanup;
}
if (data->file_xml_res_conf) {
- if (!(configXML = virDomainDefFormat(data->vm->newDef, driver.xmlopt, driver.caps,
+ if (!(configXML = virDomainDefFormat(data->vm->newDef, driver.xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE |
VIR_DOMAIN_DEF_FORMAT_INACTIVE)))
goto cleanup;
goto cleanup;
}
- if (!(actual = virDomainObjFormat(obj, driver.xmlopt, NULL,
+ if (!(actual = virDomainObjFormat(obj, driver.xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE |
VIR_DOMAIN_DEF_FORMAT_STATUS |
VIR_DOMAIN_DEF_FORMAT_ACTUAL_NET |
goto out;
}
- if (!(actual = virDomainDefFormat(def, xmlopt, caps, format_flags))) {
+ if (!(actual = virDomainDefFormat(def, xmlopt, format_flags))) {
result = TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_FORMAT;
goto out;
}
goto cleanup;
}
- if (!(formatted = virDomainDefFormat(def, xmlopt, caps,
+ if (!(formatted = virDomainDefFormat(def, xmlopt,
VIR_DOMAIN_DEF_FORMAT_SECURE)))
goto cleanup;
if (!(def = xenParseXL(conf, cfg->caps, driver->xmlopt)))
goto fail;
- if (!(gotxml = virDomainDefFormat(def, driver->xmlopt, cfg->caps,
+ if (!(gotxml = virDomainDefFormat(def, driver->xmlopt,
VIR_DOMAIN_XML_INACTIVE |
VIR_DOMAIN_XML_SECURE)))
goto fail;
if (!(def = xenParseXM(conf, cfg->caps, driver->xmlopt)))
goto fail;
- if (!(gotxml = virDomainDefFormat(def, driver->xmlopt, cfg->caps, VIR_DOMAIN_DEF_FORMAT_SECURE)))
+ if (!(gotxml = virDomainDefFormat(def, driver->xmlopt, VIR_DOMAIN_DEF_FORMAT_SECURE)))
goto fail;
if (virTestCompareToFile(gotxml, xml) < 0)