Skip to content

Commit

Permalink
🐛 Fix ptr-to-loopvar bug in assessment tags module (#585)
Browse files Browse the repository at this point in the history
Fixes an issue which is causing assessment tag autoapply and question
include/exclude to fail.

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
  • Loading branch information
mansam authored Dec 19, 2023
1 parent 9fc9bdb commit f9209a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assessment/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ func (r *TagResolver) cacheTags() (err error) {

for _, c := range categories {
r.cache[c.Name] = make(map[string]*model.Tag)
for _, t := range c.Tags {
r.cache[c.Name][t.Name] = &t
for i := range c.Tags {
t := &c.Tags[i]
r.cache[c.Name][t.Name] = t
}
}

Expand Down

0 comments on commit f9209a8

Please sign in to comment.