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

Signed-off-by: yangsoon <songyang.song@alibaba-inc.com>

Co-authored-by: yangsoon <songyang.song@alibaba-inc.com>
This commit is contained in:
yangs
2022-07-25 22:16:24 +08:00
committed by GitHub
co-authored by yangsoon
parent 8fd47ef5b9
commit c2a4169e6d
+1 -1
View File
@@ -134,7 +134,7 @@ func (h *provider) ApplyInParallel(ctx wfContext.Context, v *value.Value, act ty
deployCtx := multicluster.ContextWithClusterName(context.Background(), cluster)
deployCtx = auth.ContextWithUserInfo(deployCtx, h.app)
if err = h.apply(deployCtx, cluster, common.WorkflowResourceCreator, workloads...); err != nil {
return v.FillObject(err, "err")
return err
}
return nil
}