From ae950484eda83949814294760136d5115015a5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Mart=C3=ADn?= Date: Tue, 10 Sep 2024 13:24:35 +0200 Subject: [PATCH] fix(aws): make intersection to retrieve checks to execute (#4970) --- prowler/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prowler/__main__.py b/prowler/__main__.py index 4f62fc521b..f9627b2077 100644 --- a/prowler/__main__.py +++ b/prowler/__main__.py @@ -224,8 +224,8 @@ def prowler(): # Once the provider is set and we have the eventual checks based on the resource identifier, # it is time to check what Prowler's checks are going to be executed checks_from_resources = global_provider.get_checks_to_execute_by_audit_resources() - if checks_from_resources: - checks_to_execute = checks_to_execute.intersection(checks_from_resources) + # Intersect checks from resources with checks to execute + checks_to_execute = checks_to_execute.intersection(checks_from_resources) # Sort final check list checks_to_execute = sorted(checks_to_execute)