Skip to content

Commit

Permalink
Merge pull request #7242 from andresailer/80_fixTCA
Browse files Browse the repository at this point in the history
[8.0]: TransformationCleaningAgentL fix two exceptions in CleanWithRMS
  • Loading branch information
fstagni authored Oct 12, 2023
2 parents 165a6a5 + ec56ff7 commit 003ccc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def cleanMetadataCatalogFiles(self, transID):
return S_OK()

if self.cleanWithRMS:
res = self.__submitRemovalRequests(fileToRemove, transID)
return self.__submitRemovalRequests(fileToRemove, transID)
else:
# Executing with shifter proxy
gConfigurationData.setOptionInCFG("/DIRAC/Security/UseServerCertificate", "false")
Expand Down Expand Up @@ -723,7 +723,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"
Expand Down

0 comments on commit 003ccc1

Please sign in to comment.