Skip to content

Commit 86b73d0

Browse files
fix: Fix RegisterPilot for V9 with legacy pilots
1 parent 7880ee4 commit 86b73d0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Pilot/pilotCommands.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,11 @@ def execute(self):
555555
Deprecated with DIRAC V9 and DiracX."""
556556

557557
if self.pp.jwt:
558-
self.log.warn("Skipping module, normally it is already done via DiracX secret-exchange.")
559-
return
558+
if not self.pp.isLegacyLogging:
559+
self.log.warn("Skipping module, normally it is already done via DiracX secret-exchange.")
560+
return
561+
562+
# If we're here, this is a legacy pilot with a diracX token embedded in it.
560563

561564
if not self.pp.pilotReference:
562565
self.log.warn("Skipping module, no pilot reference found")

0 commit comments

Comments
 (0)