mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
Fix priority mapping for uppercase policies
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
parent
d1341ba0a3
commit
86464d8081
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package kubernetes
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/kyverno/policy-reporter/pkg/report"
|
||||
|
@ -141,7 +142,7 @@ func (m *mapper) mapResult(result v1alpha2.PolicyReportResult, res report.Resour
|
|||
}
|
||||
|
||||
if r.Status == report.Fail {
|
||||
r.Priority = m.resolvePriority(r.Policy, r.Severity)
|
||||
r.Priority = m.resolvePriority(strings.ToLower(r.Policy), r.Severity)
|
||||
}
|
||||
|
||||
if id, ok := result.Properties[ResultIDKey]; ok {
|
||||
|
|
Loading…
Reference in a new issue