File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/DIRAC/WorkloadManagementSystem/Agent Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -471,10 +471,10 @@ def submitPilots(self):
471
471
def __supportToken (self , ce : ComputingElement ) -> bool :
472
472
"""Check whether the SiteDirector is able to submit pilots with tokens.
473
473
474
- * the CE is able to receive tokens . Validation: Tag = Token should be included in the CE parameters.
475
- * the VO is able to produce tokens. Validation: IdProvider option is set in /Registry/VO/<VO name>/ .
474
+ * the CE is able to receive any token . Validation: Tag = Token should be included in the CE parameters.
475
+ * the CE is able to receive VO-specifc tokens. Validation: Tag = Token:<VO> should be included in the CE parameters .
476
476
"""
477
- return "Token" in ce .ceParameters .get ("Tag" , []) and Registry . getIdPForGroup ( self .pilotGroup )
477
+ return "Token" in ce .ceParameters .get ("Tag" , []) or f"Token: { self .vo } " in ce . ceParameters . get ( "Tag" , [] )
478
478
479
479
def __getPilotToken (self , audience : str , scope : list [str ] = None ):
480
480
"""Get the token corresponding to the pilot user identity
You can’t perform that action at this time.
0 commit comments