From c1988b1375b703e0c19a57271f5ba8e01cfa2c64 Mon Sep 17 00:00:00 2001 From: aldbr Date: Thu, 9 Nov 2023 14:58:06 +0100 Subject: [PATCH] sweep: #7285 fix: Getting token for a specific VO in WMSUtilities --- src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py b/src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py index 0d1f5c85c29..18e3dabacee 100644 --- a/src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py +++ b/src/DIRAC/WorkloadManagementSystem/Service/WMSUtilities.py @@ -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,