From 4db1a77d5aed1c2d7ed0db40980ecf6261f668ef Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Fri, 20 Sep 2024 18:42:02 +0200 Subject: [PATCH] fix(lightsail): Remove second call to `is_resource_filtered` (#5125) Co-authored-by: Harshit Raj Singh Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com> --- prowler/providers/aws/services/lightsail/lightsail_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prowler/providers/aws/services/lightsail/lightsail_service.py b/prowler/providers/aws/services/lightsail/lightsail_service.py index 6335e4694b6..aa717d23ff3 100644 --- a/prowler/providers/aws/services/lightsail/lightsail_service.py +++ b/prowler/providers/aws/services/lightsail/lightsail_service.py @@ -28,7 +28,7 @@ def __get_instances__(self, regional_client): f"arn:{self.audited_partition}:lightsail:{regional_client.region}:{self.audited_account}:Instance", ) - if not self.audit_resources or is_resource_filtered( + if not self.audit_resources or ( is_resource_filtered(arn, self.audit_resources) ): ports = []