Skip to content

Commit

Permalink
token: fix a typo rucio#7262
Browse files Browse the repository at this point in the history
  • Loading branch information
panta-123 authored Jan 10, 2025
1 parent 18be528 commit 9210e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rucio/transfertool/fts3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,10 +1051,10 @@ def _file_from_transfer(self, transfer: "DirectTransfer", job_params: dict[str,
[dest_lfn] = dest_protocol.parse_pfns([transfer.dest_url]).values()
dst_scope = determine_file_scope_for_path(rse_id=transfer.dst.rse.id, scopes=['storage.modify', 'storage.read'], file_path=dest_lfn['path'] + dest_lfn['name'])
token_payload = request_access_token(scope=dst_scope, audience=dst_audience)
t_file['source_tokens'].append(token_payload["access_token"])
t_file['destination_tokens'] = [token_payload["access_token"]]
else:
dst_scope = determine_scope_for_rse(transfer.dst.rse.id, scopes=['storage.modify', 'storage.read'], extra_scopes=['offline_access'])
t_file['destination_tokens'] = [request_token(dst_audience, dst_scope)]
t_file['destination_tokens'] = [request_token(dst_audience, dst_scope)]

if isinstance(self.scitags_exp_id, int):
activity_id = self.scitags_activity_ids.get(rws.activity)
Expand Down

0 comments on commit 9210e33

Please sign in to comment.