Skip to content

Commit

Permalink
Merge pull request #1486 from flanksource/fix-inline-transform
Browse files Browse the repository at this point in the history
fix: duplicate metrics/results for inline-transformation
  • Loading branch information
moshloop authored Dec 7, 2023
2 parents 1786d89 + a412733 commit 5cf2e57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checks/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ func transform(ctx *context.Context, in *pkg.CheckResult) ([]*pkg.CheckResult, b
}
return results, hasTransformer, nil
} else if len(transformed) == 1 && t.Name == "" {
// no new checks created, in-line transformation only
hasTransformer = false
in.Metrics = append(in.Metrics, t.Metrics...)
if t.Start != nil {
in.Start = *t.Start
Expand Down

0 comments on commit 5cf2e57

Please sign in to comment.