From a45cd46c2f22601a0192d4a6203cd7275af0a32e Mon Sep 17 00:00:00 2001 From: chris-schra Date: Tue, 30 May 2023 17:34:48 +0200 Subject: [PATCH] fix dry-run with filter --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e83db53..7ab7df7 100644 --- a/main.py +++ b/main.py @@ -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}.')