Skip to content

Commit

Permalink
ensure proxyfile in RestInfoForFileTransfers.json is a filename w/o p…
Browse files Browse the repository at this point in the history
…ath. Fix #8464 (#8467)
  • Loading branch information
belforte authored Jun 3, 2024
1 parent 602f8d6 commit 9ced4fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/TaskWorker/Actions/PostJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9ced4fd

Please sign in to comment.