diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index 2ae6fca3..9c0ac28d 100644 --- a/Pilot/pilotCommands.py +++ b/Pilot/pilotCommands.py @@ -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: