Skip to content

Commit

Permalink
Protocols: correctly support disabled checksums in gfal. Closes rucio…
Browse files Browse the repository at this point in the history
  • Loading branch information
Radu Carpa committed Jan 12, 2024
1 parent 488d47b commit d82e4bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rucio/rse/protocols/gfal.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ def stat(self, path):

ret['filesize'] = stats[7]

if not self.rse.get('verify_checksum', True):
return ret

message = "\n"
try:
ret[PREFERRED_CHECKSUM] = ctx.checksum(path, str(PREFERRED_CHECKSUM.upper()))
Expand Down

0 comments on commit d82e4bf

Please sign in to comment.