fix(lightsail): Remove second call to is_resource_filtered (#5125)

Co-authored-by: Harshit Raj Singh <harshitrajsingh.hrs@gmail.com>
Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
This commit is contained in:
Prowler Bot
2024-09-20 18:42:02 +02:00
committed by GitHub
parent 1f1165c2ea
commit 4db1a77d5a
@@ -28,7 +28,7 @@ class Lightsail(AWSService):
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 = []