Skip to content

Commit

Permalink
fix: use pilotUUID as pilotReference in absence of a better option
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Jan 24, 2024
1 parent 4bbc712 commit 03acb93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ def execute(self):
"""
self.pp.flavour, self.pp.pilotReference, self.pp.batchSystemInfo = getSubmitterInfo(self.pp.ceName)

if not self.pp.pilotReference:
self.pp.pilotReference = self.pp.pilotUUID

self._getBasicsCFG()
self._getSecurityCFG()

Expand Down Expand Up @@ -645,8 +648,8 @@ 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")
if not self.pp.pilotReference:
self.log.warn("Skipping module, no pilot reference found")
return

if self.pp.localConfigFile:
Expand Down

0 comments on commit 03acb93

Please sign in to comment.