Skip to content

Commit

Permalink
fix: skip RegisterPilot if not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 2, 2023
1 parent bc07f28 commit 5c50aa9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@ def __init__(self, pilotParams):
def execute(self):
"""Calls dirac-admin-add-pilot"""

if not which("dirac-admin-add-pilot") or not self.pp.pilotReference:
self.log.info("Skipping module")
return

if self.pp.useServerCertificate:
pilotOwnerGroup = "certificate_group"
else:
Expand Down

0 comments on commit 5c50aa9

Please sign in to comment.