Skip to content

Commit 287a581

Browse files
Fix logic error with AMI GC (#97)
Remove a stray `break` that was causing AMIs to not be GC'd.
1 parent f80ffc8 commit 287a581

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

gc/collectors/amis.py

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def _find_expired_amis(self, amis: list[ImageTypeDef]) -> list[ImageTypeDef]:
7272
if image_name:
7373
if branch_name:
7474
ami_groups[branch_name][image_name].append(ami)
75-
break
7675
else:
7776
expired_amis.append(ami)
7877

0 commit comments

Comments
 (0)