Skip to content

Commit ec80379

Browse files
committed
fix: use rule name instead of policy name
Signed-off-by: Hunter Gregory <[email protected]>
1 parent a7efe53 commit ec80379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/policy-assistant/pkg/matcher/explain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func groupAnbAndBanp(p []PeerMatcher) []PeerMatcher {
205205
kg := t.PolicyName
206206
if _, ok := groups[k].policies[kg]; !ok {
207207
groups[k].policies[kg] = &anpGroup{
208-
ruleName: t.PolicyName,
208+
ruleName: t.RuleName,
209209
priority: t.effectFromMatch.Priority,
210210
effects: []string{},
211211
kind: t.effectFromMatch.PolicyKind,

0 commit comments

Comments
 (0)