Skip to content

Commit

Permalink
Merge pull request #65 from computeruniverse-oss/fix/dry-run-with-filter
Browse files Browse the repository at this point in the history
Fix dry-run with filter
  • Loading branch information
sondrelg authored May 30, 2023
2 parents f617f1c + a45cd46 commit 2ebfab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ async def get_and_delete_old_versions(image_name: str, inputs: Inputs, http_clie
# Skipping because this image version is tagged with a protected tag
delete_image = False

if inputs.dry_run:
if delete_image is True and inputs.dry_run:
delete_image = False
print(f'Would delete image {image_name}:{version.id}.')

Expand Down

0 comments on commit 2ebfab7

Please sign in to comment.