From d82e4bf5634fd79885303a301b6d0078c1aa9270 Mon Sep 17 00:00:00 2001 From: Radu Carpa Date: Mon, 8 Jan 2024 09:50:16 +0100 Subject: [PATCH] Protocols: correctly support disabled checksums in gfal. Closes #6439 --- lib/rucio/rse/protocols/gfal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rucio/rse/protocols/gfal.py b/lib/rucio/rse/protocols/gfal.py index 580cddaf60..127f11864d 100644 --- a/lib/rucio/rse/protocols/gfal.py +++ b/lib/rucio/rse/protocols/gfal.py @@ -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()))