mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-09 05:01:28 +00:00
Don't overwrite virDomainAssignDef errors.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
e40a285bb7
commit
fff6be0cc0
@ -6284,8 +6284,7 @@ static int qemudDomainRestore(virConnectPtr conn,
|
|||||||
if (!(vm = virDomainAssignDef(driver->caps,
|
if (!(vm = virDomainAssignDef(driver->caps,
|
||||||
&driver->domains,
|
&driver->domains,
|
||||||
def, true))) {
|
def, true))) {
|
||||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
/* virDomainAssignDef already set the error */
|
||||||
"%s", _("failed to assign new VM"));
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
def = NULL;
|
def = NULL;
|
||||||
@ -10028,8 +10027,7 @@ qemudDomainMigratePrepareTunnel(virConnectPtr dconn,
|
|||||||
if (!(vm = virDomainAssignDef(driver->caps,
|
if (!(vm = virDomainAssignDef(driver->caps,
|
||||||
&driver->domains,
|
&driver->domains,
|
||||||
def, true))) {
|
def, true))) {
|
||||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
/* virDomainAssignDef already set the error */
|
||||||
"%s", _("failed to assign new VM"));
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
def = NULL;
|
def = NULL;
|
||||||
@ -10259,8 +10257,7 @@ qemudDomainMigratePrepare2 (virConnectPtr dconn,
|
|||||||
if (!(vm = virDomainAssignDef(driver->caps,
|
if (!(vm = virDomainAssignDef(driver->caps,
|
||||||
&driver->domains,
|
&driver->domains,
|
||||||
def, true))) {
|
def, true))) {
|
||||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
/* virDomainAssignDef already set the error */
|
||||||
"%s", _("failed to assign new VM"));
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
def = NULL;
|
def = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user