Skip to content

Commit 85c622d

Browse files
authored
Merge pull request #7288 from fstagni/cherry-pick-2-2821b6aa9-integration
[sweep:integration] fix: Getting token for a specific VO in WMSUtilities
2 parents 4f14f50 + c1988b1 commit 85c622d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def setPilotCredentials(ce, pilotDict):
8484
:param pilotDict: pilot parameter dictionary
8585
:return: S_OK/S_ERROR
8686
"""
87-
if "Token" in ce.ceParameters.get("Tag", []):
87+
vo = getVOForGroup(pilotDict["OwnerGroup"])
88+
if "Token" in ce.ceParameters.get("Tag", []) or f"Token:{vo}" in ce.ceParameters.get("Tag", []):
8889
result = gTokenManager.getToken(
8990
userGroup=pilotDict["OwnerGroup"],
9091
scope=PILOT_SCOPES,

0 commit comments

Comments
 (0)