Skip to content

Commit 065c6b0

Browse files
authored
Merge pull request #131 from stackhpc/feature/partition_params
Improve empty partition name
2 parents f51ef58 + c9e4ef7 commit 065c6b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/slurm.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ NodeName={{ hostlist }} State=UNKNOWN RealMemory={{ group.get('ram_mb', ram_mb)
128128
{% endfor %}
129129
{% endfor %}{# group #}
130130
{% if not nodelist %} {# empty partition - define an invalid hostname which slurm accepts #}
131-
{% set nodelist = ['-nonesuch'] %}
131+
{% set nodelist = ['n/a'] %}
132132
NodeName={{ nodelist[0] }}
133133
{% endif %}
134134
PartitionName={{part.name}} Default={{ part.get('default', 'YES') }} MaxTime={{ part.get('maxtime', openhpc_job_maxtime) }} State=UP Nodes={{ nodelist | join(',') }} {{ part.partition_params | default({}) | dict2parameters }}

0 commit comments

Comments
 (0)