Skip to content

Commit

Permalink
fix kind mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed Sep 23, 2023
1 parent b5926d7 commit f457143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/database/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func MapPolicyReportFilter(polr v1alpha2.ReportInterface) []*PolicyReportFilter
for _, res := range polr.GetResults() {
kind := res.GetKind()
if kind == "" && polr.GetScope() != nil {
kind = polr.GetScope().Namespace
kind = polr.GetScope().Kind
}

value := &PolicyReportFilter{
Expand Down

0 comments on commit f457143

Please sign in to comment.