Skip to content

Commit

Permalink
Merge pull request #229 from jbeal-work/issue_228
Browse files Browse the repository at this point in the history
LSF jobs with multiple slots display each hostname ':' separated
  • Loading branch information
mbmilligan authored Sep 7, 2022
2 parents a858a80 + 8e0e234 commit 16246d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batchspawner/batchspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def state_isrunning(self):

def state_gethost(self):
if self.job_status:
return self.job_status.split(" ")[1].strip()
return self.job_status.split(" ")[1].strip().split(":")[0]

self.log.error(
"Spawner unable to match host addr in job {0} with status {1}".format(
Expand Down

0 comments on commit 16246d3

Please sign in to comment.