Fix: The apply failure error is ignored when the workflow is executed (#4459)

Signed-off-by: yangsoon <songyang.song@alibaba-inc.com>
(cherry picked from commit b1d8e6c88b)

Co-authored-by: yangsoon <songyang.song@alibaba-inc.com>
This commit is contained in:
github-actions[bot]
2022-07-25 22:17:28 +08:00
committed by GitHub
co-authored by yangsoon
parent 21534a5909
commit 7b4e771ff8
+1 -1
View File
@@ -120,7 +120,7 @@ func (h *provider) ApplyInParallel(ctx wfContext.Context, v *value.Value, act ty
}
deployCtx := multicluster.ContextWithClusterName(context.Background(), cluster)
if err = h.apply(deployCtx, cluster, common.WorkflowResourceCreator, workloads...); err != nil {
return v.FillObject(err, "err")
return err
}
return nil
}