Skip to content

Commit 16246d3

Browse files
authored
Merge pull request #229 from jbeal-work/issue_228
LSF jobs with multiple slots display each hostname ':' separated
2 parents a858a80 + 8e0e234 commit 16246d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

batchspawner/batchspawner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def state_isrunning(self):
969969

970970
def state_gethost(self):
971971
if self.job_status:
972-
return self.job_status.split(" ")[1].strip()
972+
return self.job_status.split(" ")[1].strip().split(":")[0]
973973

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

0 commit comments

Comments
 (0)