From 01194137ab7d18d8f1d96100869293d5ba07834b Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Thu, 12 Oct 2023 05:34:31 +0200 Subject: [PATCH] fix(TCA): add encoding before hashing --- .../TransformationSystem/Agent/TransformationCleaningAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py b/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py index 0c9fce5883f..e328e165411 100644 --- a/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py +++ b/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py @@ -690,7 +690,7 @@ def __submitRemovalRequests(self, lfns, transID=0): """ for index, lfnList in enumerate(breakListIntoChunks(lfns, 300)): oRequest = Request() - requestName = "TCA_{transID}_{index}_{md5(repr(time.time())).hexdigest()[:5]}" + requestName = "TCA_{transID}_{index}_{md5(repr(time.time()).encode()).hexdigest()[:5]}" oRequest.RequestName = requestName oOperation = Operation() oOperation.Type = "RemoveFile"