From b30e5eecb5d6d6139557bd0427e6e954e7c53f8b Mon Sep 17 00:00:00 2001 From: aldbr Date: Thu, 9 Nov 2023 11:06:56 +0100 Subject: [PATCH] fix: disabledVOs not availabe when doing dirac-configure --- src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py b/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py index 235dbf4b59a..02e994dddce 100755 --- a/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py +++ b/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py @@ -240,7 +240,7 @@ def doTheMagic(self): vo = Registry.getVOMSVOForGroup(self.__piParams.diracGroup) disabledVOs = gConfig.getValue("/DiracX/DisabledVOs", []) - if vo not in disabledVOs: + if vo and vo not in disabledVOs: from diracx.core.utils import write_credentials # pylint: disable=import-error from diracx.core.models import TokenResponse # pylint: disable=import-error from diracx.core.preferences import DiracxPreferences # pylint: disable=import-error