Skip to content

Commit

Permalink
Merge pull request #111 from nirmata/polex-30min
Browse files Browse the repository at this point in the history
NDEV-18662: correct reports taking 30 minutes with polex
  • Loading branch information
anushkamittal2001 committed Apr 26, 2024
2 parents eb86faa + da36ecc commit e6bf9e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/controllers/report/background/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,8 @@ func (c *controller) reconcileReport(
policyNameToLabel[key] = reportutils.PolicyLabel(policy)
}
for _, exception := range exceptions {
key, err := cache.MetaNamespaceKeyFunc(exception)
if err != nil {
return err
}
exceptionCopy := exception // resolves lint error
key := cache.MetaObjectToName(&exceptionCopy).String()
policyNameToLabel[key] = reportutils.PolicyExceptionLabel(exception)
}
for _, result := range observed.GetResults() {
Expand Down

0 comments on commit e6bf9e7

Please sign in to comment.