Skip to content

Commit

Permalink
fix(lightsail): Remove second call to is_resource_filtered (#5125)
Browse files Browse the repository at this point in the history
Co-authored-by: Harshit Raj Singh <[email protected]>
Co-authored-by: Sergio Garcia <[email protected]>
  • Loading branch information
3 people authored Sep 20, 2024
1 parent 1f1165c commit 4db1a77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 4db1a77

Please sign in to comment.