We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8a38a commit 8f9436fCopy full SHA for 8f9436f
templates/slurm.conf.j2
@@ -166,9 +166,10 @@ NodeName={{ hostlist }} {{ '' -}}
166
{{ nodegroup.params | default({}) | dict2parameters }} {{ '' -}}
167
{% if 'gres' in nodegroup %}Gres={{ ','.join(nodegroup.gres | map(attribute='conf')) }}{% endif %}
168
{% endfor %}{# hostlists #}
169
-
170
-NodeSet={{ nodegroup.name }} Nodes={{ ','.join(hostlists) }}{# no support for creating nodesets by Feature #}
171
{% endif %}{# 1 or more hosts in inventory #}
+
+NodeSet={{ nodegroup.name }} Nodes={{ ','.join(hostlists | default(['""'])) }}{# no support for creating nodesets by Feature #}
172
173
{% endfor %}
174
175
# Define a non-existent node, in no partition, so that slurmctld starts even with all partitions empty
0 commit comments