From c9c1e2414e1e7414039d1f0836f5e74dac928024 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 17 Mar 2023 17:59:37 +0000 Subject: [PATCH] Don't delete the `.release-backup-done` file Signed-off-by: Pedro Algarvio --- tools/release.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/release.py b/tools/release.py index a6f1ea17847..6fd8ce5af52 100644 --- a/tools/release.py +++ b/tools/release.py @@ -63,6 +63,8 @@ def upload_artifacts(ctx: Context, salt_version: str, artifacts_path: pathlib.Pa if "Contents" in ret: objects = [] for entry in ret["Contents"]: + if entry["Key"].endswith(".release-backup-done"): + continue objects.append({"Key": entry["Key"]}) to_delete_paths.extend(objects) except ClientError as exc: