Skip to content

Commit

Permalink
fix: Fix error check in validation for AnalysisTemplates not found (a…
Browse files Browse the repository at this point in the history
…rgoproj#1249)

Signed-off-by: khhirani <[email protected]>
Signed-off-by: caoyang001 <[email protected]>
  • Loading branch information
khhirani authored and Hui Kang committed Sep 16, 2021
1 parent 8fabdb3 commit 5dc6b40
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rollout/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ func (c *rolloutContext) getReferencedRolloutAnalyses() (*[]validation.AnalysisT
for i, step := range canary.Steps {
if step.Analysis != nil {
templates, err := c.getReferencedAnalysisTemplates(c.rollout, step.Analysis, validation.InlineAnalysis, i)
templates.Args = step.Analysis.Args
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5dc6b40

Please sign in to comment.