Skip to content

Commit

Permalink
fix: Workflow operation error. Fixes #10285 (#10886)
Browse files Browse the repository at this point in the history
Signed-off-by: yeicandoit <410342333@qq.com>
  • Loading branch information
yeicandoit authored and terrytangyuan committed May 25, 2023
1 parent aeb0808 commit e803de5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflow/controller/taskresult.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ func (woc *wfOperationCtx) taskResultReconciliation() {
for _, obj := range objs {
result := obj.(*wfv1.WorkflowTaskResult)
nodeID := result.Name
old := woc.wf.Status.Nodes[nodeID]
old, exist := woc.wf.Status.Nodes[nodeID]
if !exist {
continue
}
new := old.DeepCopy()
if result.Outputs.HasOutputs() {
if new.Outputs == nil {
Expand Down

0 comments on commit e803de5

Please sign in to comment.