From 9ced4fd15edaffd72d4af51647dde15d2cba8e6e Mon Sep 17 00:00:00 2001 From: Stefano Belforte Date: Mon, 3 Jun 2024 23:34:01 +0200 Subject: [PATCH] ensure proxyfile in RestInfoForFileTransfers.json is a filename w/o path. Fix #8464 (#8467) --- src/python/TaskWorker/Actions/PostJob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/TaskWorker/Actions/PostJob.py b/src/python/TaskWorker/Actions/PostJob.py index 17c235edf8..5cc59b96f3 100644 --- a/src/python/TaskWorker/Actions/PostJob.py +++ b/src/python/TaskWorker/Actions/PostJob.py @@ -995,7 +995,7 @@ def updateOrInsertDoc(self, doc, toTransfer): #if not os.path.exists('task_process/rest_filetransfers.txt'): restInfo = {'host':self.rest_host, 'dbInstance': self.db_instance, - 'proxyfile': self.proxy} + 'proxyfile': os.path.basename(self.proxy)} with open('task_process/RestInfoForFileTransfers.json', 'w') as fp: json.dump(restInfo, fp) else: @@ -1014,7 +1014,7 @@ def updateOrInsertDoc(self, doc, toTransfer): #if not os.path.exists('task_process/rest_filetransfers.txt'): restInfo = {'host':self.rest_host, 'dbInstance': self.db_instance, - 'proxyfile': self.proxy} + 'proxyfile': os.path.basename(self.proxy)} with open('task_process/RestInfoForFileTransfers.json','w') as fp: json.dump(restInfo, fp) return returnMsg