Don't delete the .release-backup-done file

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-03-17 17:59:37 +00:00
parent 3133b46807
commit c9c1e2414e
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -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: