Skip to content

Commit 1e683ea

Browse files
committed
feat: replacing condition to submit pilots with tokens in multiVO setup
1 parent 077979e commit 1e683ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,10 @@ def submitPilots(self):
471471
def __supportToken(self, ce: ComputingElement) -> bool:
472472
"""Check whether the SiteDirector is able to submit pilots with tokens.
473473
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.
476476
"""
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", [])
478478

479479
def __getPilotToken(self, audience: str, scope: list[str] = None):
480480
"""Get the token corresponding to the pilot user identity

0 commit comments

Comments
 (0)