Skip to content

Commit

Permalink
Fix minor parameter bug in #535
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Jul 8, 2021
1 parent aaadc7a commit 6fc8cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion awslimitchecker/services/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def _find_usage_networking_sgs(self):
sg_count = 0
rules_per_sg = defaultdict(int)
for sg in self.resource_conn.security_groups.filter(
owner_id=self.current_account_id
Filters=[{'Name': 'owner-id', 'Values': [self.current_account_id]}]
):
if sg.vpc_id is None:
continue
Expand Down
4 changes: 3 additions & 1 deletion awslimitchecker/tests/services/test_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,9 @@ def test_simple(self):
# egress: IPv4 = 22; IPv6 = 29
assert sorted_usage[2].get_value() == 29
assert mock_conn.mock_calls == [
call.security_groups.filter(owner_id='1234567890')
call.security_groups.filter(
Filters=[{'Name': 'owner-id', 'Values': ['1234567890']}]
)
]


Expand Down

0 comments on commit 6fc8cc5

Please sign in to comment.