提交 fff6be0c 编写于 作者: C Chris Lalancette

Don't overwrite virDomainAssignDef errors.

Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 e40a285b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册