mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 18:05:20 +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,
|
||||
&driver->domains,
|
||||
def, true))) {
|
||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
||||
"%s", _("failed to assign new VM"));
|
||||
/* virDomainAssignDef already set the error */
|
||||
goto cleanup;
|
||||
}
|
||||
def = NULL;
|
||||
@ -10028,8 +10027,7 @@ qemudDomainMigratePrepareTunnel(virConnectPtr dconn,
|
||||
if (!(vm = virDomainAssignDef(driver->caps,
|
||||
&driver->domains,
|
||||
def, true))) {
|
||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
||||
"%s", _("failed to assign new VM"));
|
||||
/* virDomainAssignDef already set the error */
|
||||
goto cleanup;
|
||||
}
|
||||
def = NULL;
|
||||
@ -10259,8 +10257,7 @@ qemudDomainMigratePrepare2 (virConnectPtr dconn,
|
||||
if (!(vm = virDomainAssignDef(driver->caps,
|
||||
&driver->domains,
|
||||
def, true))) {
|
||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
||||
"%s", _("failed to assign new VM"));
|
||||
/* virDomainAssignDef already set the error */
|
||||
goto cleanup;
|
||||
}
|
||||
def = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user