Merge pull request #2810 from natefoo/split-kwargs

[16.07] Revert str.split() syntax for Python 2 compatibility
This commit is contained in:
Dannon Baker
2016-08-17 15:40:39 -04:00
committed by GitHub
+1 -1
View File
@@ -43,7 +43,7 @@ class SlurmJobRunner( DRMAAJobRunner ):
cmd = [ 'scontrol', '-o' ]
if '.' in ajs.job_id:
# custom slurm-drmaa-with-cluster-support job id syntax
job_id, cluster = ajs.job_id.split('.', maxsplit=1)
job_id, cluster = ajs.job_id.split('.', 1)
cmd.extend( [ '-M', cluster ] )
else:
job_id = ajs.job_id