diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index 549c5f88..b8629ce2 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: