From 4f2219ba7db0cde7658d02037e24c53af9409e7a Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Fri, 7 Aug 2026 16:38:57 +0200 Subject: [PATCH] Remove dangerous unecessary call to strftime (cherry picked from commit 30b78439456108c8d2ef014f4ccc7aee951f7f13) --- pulp_container/app/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pulp_container/app/models.py b/pulp_container/app/models.py index 4557fdea4..7277f6902 100644 --- a/pulp_container/app/models.py +++ b/pulp_container/app/models.py @@ -2,7 +2,6 @@ import os import re import tempfile -import time from gettext import gettext as _ from logging import getLogger @@ -797,8 +796,7 @@ class Meta: def generate_filename(instance, filename): """Method for generating upload file name""" - filename = os.path.join(instance.upload_dir, str(instance.pk) + INCOMPLETE_EXT) - return time.strftime(filename) + return os.path.join(instance.upload_dir, str(instance.pk) + INCOMPLETE_EXT) class Upload(CoreUpload):