Skip to content

Commit

Permalink
chore(ec2): Change an if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRgzLpz committed Sep 11, 2024
1 parent fe9da3b commit 5c5b12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prowler/providers/aws/services/ec2/ec2_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _describe_network_acls(self, regional_client):
nacl_name = tag["Value"]
in_use = False

Check warning on line 159 in prowler/providers/aws/services/ec2/ec2_service.py

View check run for this annotation

Codecov / codecov/patch

prowler/providers/aws/services/ec2/ec2_service.py#L159

Added line #L159 was not covered by tests
for subnet in nacl["Associations"]:
if subnet["SubnetId"] != "None":
if subnet["SubnetId"]:
in_use = True
break
self.network_acls[arn] = NetworkACL(
Expand Down

0 comments on commit 5c5b12f

Please sign in to comment.