Skip to content

Commit

Permalink
aws - elbv2 wafv2-enabled fix to include only application loadbalance…
Browse files Browse the repository at this point in the history
…rs (#7869)
  • Loading branch information
Harish Achappa authored and HappyKid117 committed Oct 16, 2022
1 parent 93b0cd0 commit 55de136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c7n/resources/appelb.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def process(self, resources, event=None):
state_map[arn] = True
continue
state_map[arn] = False
return [r for r in resources if state_map[r[arn_key]] == state]
return [r for r in resources if r[arn_key] in state_map and state_map[r[arn_key]] == state]


@AppELB.action_registry.register('set-waf')
Expand Down

0 comments on commit 55de136

Please sign in to comment.