DIRACGrid/DIRAC — Issue #445: bug in dirac-admin-allow-catalog, dirac-admin-ban-catalog
Author: elisal
Created: 2012-01-24 17:37:24+00:00
State: open

the scripts crash for an undefined variable:
[lxplus416] /afs/cern.ch/user/l/lanciott > dirac-admin-ban-catalog LCG.PIC.es
Traceback (most recent call last):
File "/afs/cern.ch/lhcb/software/releases/DIRAC/DIRAC_v6r1/InstallArea/scripts/dirac-admin-ban-catalog", line 45,
in
res = csAPI.setOption( "%s/%s/Status" % ( storageCFGBase, site ), "InActive" )
NameError: name 'storageCFGBase' is not defined

fixed here:
https://github.com/elisal/DIRAC/blob/allowBanFC/DataManagementSystem/scripts/dirac-admin-ban-catalog.py
https://github.com/elisal/DIRAC/blob/allowBanFC/DataManagementSystem/scripts/dirac-admin-allow-catalog.py