Skip to content

Commit d15f199

Browse files
authored
Merge pull request #341 from Cloudac7/lsf
Add missing quotes for BSUB command (Fix for #337)
2 parents 80849cf + 8babd24 commit d15f199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpgen/dispatcher/LSF.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def sub_script_head(self, res):
124124
if len(res['partition']) > 0 :
125125
ret += '#BSUB -q %s\n' % res['partition']
126126
if len(res['exclude_list']) > 0:
127-
ret += '#BSUB -R select['
127+
ret += '#BSUB -R "select['
128128
temp_exclude = []
129129
for ii in res['exclude_list']:
130130
temp_exclude.append('hname != %s' % ii)
131131
ret += ' && '.join(temp_exclude)
132-
ret += ']\n'
132+
ret += ']"\n'
133133
ret += "\n"
134134
for ii in res['module_unload_list'] :
135135
ret += "module unload %s\n" % ii

0 commit comments

Comments
 (0)