Skip to content

Commit e3b1d68

Browse files
fix: Resolved dirac-proxy-init issue with multi-VO
1 parent d2f99c0 commit e3b1d68

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/DIRAC/ConfigurationSystem/Client/Helpers/Registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def getVOForGroup(group):
457457
458458
:return: str
459459
"""
460-
return getVO() or gConfig.getValue(f"{gBaseRegistrySection}/Groups/{group}/VO", "")
460+
return gConfig.getValue(f"{gBaseRegistrySection}/Groups/{group}/VO", "") or getVO()
461461

462462

463463
def getIdPForGroup(group):

src/DIRAC/Core/Security/DiracX.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
def addTokenToPEM(pemPath, group):
4848
from DIRAC.Core.Base.Client import Client
4949

50-
vo = Registry.getVOMSVOForGroup(group)
50+
vo = Registry.getVOForGroup(group)
5151
if not vo:
5252
gLogger.error(f"ERROR: Could not find VO for group {group}, DiracX will not work!")
5353
disabledVOs = gConfig.getValue("/DiracX/DisabledVOs", [])

src/DIRAC/WorkloadManagementSystem/Client/JobStateUpdateClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class JobStateUpdateClient(Client):
1111
"""JobStateUpdateClient sets url for the JobStateUpdateHandler."""
1212

13-
diracxClient = futureJobStateUpdateClient
13+
diracxClient = None
1414

1515
def __init__(self, url=None, **kwargs):
1616
"""

0 commit comments

Comments
 (0)