Automatic merge from release/2.0.0 -> release/2.1.0

* commit '9be6d86e292c036c783190ac53e929717b46806d':
  fix: NotifyParentTaskFailure reason
This commit is contained in:
邱剑
2018-08-25 14:40:02 +08:00
+1 -1
View File
@@ -548,7 +548,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)
}