Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7288 from fstagni/cherry-pick-2-2821b6aa…
Browse files Browse the repository at this point in the history
…9-integration

[sweep:integration] fix: Getting token for a specific VO in WMSUtilities
  • Loading branch information
fstagni authored Nov 10, 2023
2 parents 4f14f50 + c1988b1 commit 85c622d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def setPilotCredentials(ce, pilotDict):
:param pilotDict: pilot parameter dictionary
:return: S_OK/S_ERROR
"""
if "Token" in ce.ceParameters.get("Tag", []):
vo = getVOForGroup(pilotDict["OwnerGroup"])
if "Token" in ce.ceParameters.get("Tag", []) or f"Token:{vo}" in ce.ceParameters.get("Tag", []):
result = gTokenManager.getToken(
userGroup=pilotDict["OwnerGroup"],
scope=PILOT_SCOPES,
Expand Down

0 comments on commit 85c622d

Please sign in to comment.