Skip to content

Commit

Permalink
fix: remove blank spaces from category label
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed Jun 21, 2023
1 parent e362069 commit 6806fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/worker/report/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewClusterIssue(c *config.Config, cispec *zorav1a1.ClusterIssueSpec, orefs
zorav1a1.LabelCluster: c.Cluster,
zorav1a1.LabelSeverity: string(cispec.Severity),
zorav1a1.LabelIssueID: cispec.ID,
zorav1a1.LabelCategory: cispec.Category,
zorav1a1.LabelCategory: strings.ReplaceAll(cispec.Category, " ", ""),
zorav1a1.LabelPlugin: c.Plugin,
zorav1a1.LabelCustom: strconv.FormatBool(cispec.Custom),
},
Expand Down

0 comments on commit 6806fc0

Please sign in to comment.