Skip to content

Commit

Permalink
r/aws_wafv2_web_acl: error when rule_json contains zero value rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b committed Aug 1, 2024
1 parent fffd775 commit b2c3e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/wafv2/flex.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ func expandWebACLRulesJSON(rawRules string) ([]awstypes.Rule, error) {
}

for i, r := range rules {
if reflect.DeepEqual(r, nil) {
if reflect.DeepEqual(r, awstypes.Rule{}) {
return nil, fmt.Errorf("invalid ACL Rule supplied at index (%d)", i)
}
}
Expand Down

0 comments on commit b2c3e80

Please sign in to comment.