From 333b4258300640f3951b17bf62a02720ca09ab23 Mon Sep 17 00:00:00 2001 From: belforte Date: Mon, 24 Jan 2022 23:50:02 +0100 Subject: [PATCH] remove extra / in API name. Fix #7004 --- scripts/task_process/FTS_Transfers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/task_process/FTS_Transfers.py b/scripts/task_process/FTS_Transfers.py index c02ec9df16..ed97343c58 100644 --- a/scripts/task_process/FTS_Transfers.py +++ b/scripts/task_process/FTS_Transfers.py @@ -81,7 +81,7 @@ def mark_transferred(ids, crabserver): data['list_of_ids'] = ids data['list_of_transfer_state'] = ["DONE" for _ in ids] - crabserver.post('/filetransfers', data=encodeRequest(data)) + crabserver.post('filetransfers', data=encodeRequest(data)) logging.info("Marked good %s", ids) except Exception: logging.exception("Error updating documents") @@ -105,7 +105,7 @@ def mark_failed(ids, failures_reasons, crabserver): data['list_of_failure_reason'] = failures_reasons data['list_of_retry_value'] = [0 for _ in ids] - crabserver.post('/filetransfers', data=encodeRequest(data)) + crabserver.post('filetransfers', data=encodeRequest(data)) logging.info("Marked failed %s", ids) except Exception: logging.exception("Error updating documents") @@ -451,7 +451,7 @@ def submit(rucioClient, ftsContext, toTrans, crabserver): # jobContent.write(str(f[0])) # save the list of src_lfn's in this job for fileDoc in to_update: - _ = crabserver.post('/filetransfers', data=encodeRequest(fileDoc)) + _ = crabserver.post('filetransfers', data=encodeRequest(fileDoc)) logging.info("Marked submitted %s files", fileDoc['list_of_ids']) return jobids