Revert str.split() syntax for Python 2 compatibility

This commit is contained in:
Nate Coraor
2016-08-17 14:02:15 -04:00
parent 8d512c98e2
commit c3d7ca8eef
+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