From edfdc1d862da9b2edddd2b2acd8cf1da945f8764 Mon Sep 17 00:00:00 2001 From: Stefano Belforte Date: Mon, 24 Jan 2022 23:51:10 +0100 Subject: [PATCH] Remove extra slash fix 7004 (#7006) * remove extra / in API name. Fix #7004 * 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