Merge pull request #1009 from wanyaoqi/bugfix/wyq/fix-guest-migrate-on-faile

fix on guest migrate fail
This commit is contained in:
yunion-ci-robot
2019-05-31 13:15:24 +08:00
committed by GitHub
+1 -1
View File
@@ -370,7 +370,7 @@ func (self *GuestLiveMigrateTask) OnLiveMigrateComplete(ctx context.Context, gue
_, _, err := httputils.JSONRequest(httputils.GetDefaultClient(),
ctx, "POST", url, headers, body, false)
if err != nil {
self.TaskFailed(ctx, guest, err.Error())
self.OnResumeDestGuestCompleteFailed(ctx, guest, jsonutils.NewString(err.Error()))
}
}