mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
parallels: don't override error message when XML parsing fails
The virDomainDefParseString method will report a suitable error on parsing fail, so don't replace that.
This commit is contained in:
parent
70948db22a
commit
ee043216e6
@ -670,11 +670,8 @@ parallelsDomainDefineXMLFlags(virConnectPtr conn, const char *xml, unsigned int
|
||||
parallelsDriverLock(privconn);
|
||||
if ((def = virDomainDefParseString(xml, privconn->caps, privconn->xmlopt,
|
||||
1 << VIR_DOMAIN_VIRT_PARALLELS,
|
||||
VIR_DOMAIN_XML_INACTIVE)) == NULL) {
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||
_("Can't parse XML desc"));
|
||||
VIR_DOMAIN_XML_INACTIVE)) == NULL)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
olddom = virDomainObjListFindByUUID(privconn->domains, def->uuid);
|
||||
if (olddom == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user