mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #118 in YUNIONIO/onecloud from ~LIZEXI/onecloud:bugfix/lzx-parent-task-failed-reason to release/2.0.0
* commit '2914e880af453cf59f793216268dbc5f0ddfe562': fix: NotifyParentTaskFailure reason
This commit is contained in:
@@ -538,7 +538,7 @@ func (self *STask) NotifyParentTaskFailure(ctx context.Context, reason string) {
|
||||
if len(reason) > 100 {
|
||||
reason = reason[:100] + "..."
|
||||
}
|
||||
body.Add(jsonutils.NewString(fmt.Sprintf("Subtask %s failed: %s", self.TaskName, reason)))
|
||||
body.Add(jsonutils.NewString(fmt.Sprintf("Subtask %s failed: %s", self.TaskName, reason)), "__reason__")
|
||||
self.NotifyParentTaskComplete(ctx, body, true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user