mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 23:34:27 +00:00
fix(wafv2): only list resources for regional Web ACLs (#5812)
Co-authored-by: Hugo Pereira Brito <101209179+HugoPBrito@users.noreply.github.com>
This commit is contained in:
1 parent
69a2d317a7
commit
22a3869ac1
1 file changed
+1
-1
@@ -99,7 +99,7 @@ class WAFv2(AWSService):
|
||||
def _list_resources_for_web_acl(self, acl):
|
||||
logger.info("WAFv2 - Describing resources...")
|
||||
try:
|
||||
if acl.scope == Scope.REGIONAL or acl.region in self.regional_clients:
|
||||
if acl.scope == Scope.REGIONAL:
|
||||
for resource in self.regional_clients[
|
||||
acl.region
|
||||
].list_resources_for_web_acl(
|
||||
|
||||
Reference in new issue
Block a user