From a728fb9aa9704650daa2375dcab70b7184777ec3 Mon Sep 17 00:00:00 2001 From: Wainer Vandelli <Wainer.Vandelli@cern.ch> Date: Wed, 28 Apr 2010 10:48:48 +0000 Subject: [PATCH] Pad castor checksum to have 8 chars --- Script/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script/utils.py b/Script/utils.py index 579d27a..b320337 100644 --- a/Script/utils.py +++ b/Script/utils.py @@ -72,7 +72,7 @@ def castorinfo(castorfile, castorenv, logger): size = int(splitted[4]) id = splitted.index('AD') - checksum = nslsOut.split()[id+1] + checksum = (nslsOut.split()[id+1]).zfill(8) except ValueError: size = checksum = None -- GitLab