Skip to content

Commit

Permalink
fix: use rule name instead of policy name
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter Gregory <[email protected]>
  • Loading branch information
huntergregory committed Jul 19, 2024
1 parent a7efe53 commit ec80379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/policy-assistant/pkg/matcher/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func groupAnbAndBanp(p []PeerMatcher) []PeerMatcher {
kg := t.PolicyName
if _, ok := groups[k].policies[kg]; !ok {
groups[k].policies[kg] = &anpGroup{
ruleName: t.PolicyName,
ruleName: t.RuleName,
priority: t.effectFromMatch.Priority,
effects: []string{},
kind: t.effectFromMatch.PolicyKind,
Expand Down

0 comments on commit ec80379

Please sign in to comment.