Skip to content

Commit

Permalink
RSE: POSIX, check 'path' is in LFN dict before accessing
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Jan 16, 2025
1 parent 0ec48f2 commit c96ea61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rucio/rse/protocols/posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def lfns2pfns(self, lfns):
lfns = [lfns] if isinstance(lfns, dict) else lfns
for lfn in lfns:
scope, name = str(lfn['scope']), lfn['name']
if lfn.get('path'):
if 'path' in lfn and lfn.get('path'):
pfns['%s:%s' % (scope, name)] = ''.join([self.attributes['scheme'],
'://',
self.attributes['hostname'],
Expand Down

0 comments on commit c96ea61

Please sign in to comment.