File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,7 @@ Epilog=/etc/slurm/slurm.epilog.clean
156156{% set first_host_hv = hostvars [first_host ] %}
157157{% set ram_mb = (first_host_hv ['ansible_memory_mb' ]['real' ]['total' ] * (nodegroup .ram_multiplier | default (openhpc_ram_multiplier ))) | int %}
158158{% set hostlists = (inventory_group_hosts | hostlist_expression ) %} {# hosts in inventory group aren't necessarily a single hostlist expression #}
159- {% for hostlist in hostlists %}
160- NodeName={{ hostlist }} {{ '' -}}
159+ NodeName={{ hostlists | join(',') }} {{ '' -}}
161160 Features={{ (['nodegroup_' ~ nodegroup.name] + nodegroup.features | default([] ) ) | join(',') }} {{ '' -}}
162161 State=UNKNOWN {{ '' -}}
163162 RealMemory={{ nodegroup.ram_mb | default(ram_mb) }} {{ '' -}}
@@ -167,7 +166,6 @@ NodeName={{ hostlist }} {{ '' -}}
167166 {{ nodegroup.node_params | default({}) | dict2parameters }} {{ '' -}}
168167 {% if 'gres' in nodegroup %} Gres={{ ','.join(nodegroup.gres | map(attribute='conf')) }}{% endif %}
169168
170- {% endfor %} {# hostlists #}
171169{% endif %} {# 1 or more hosts in inventory #}
172170NodeSet=nodegroup_{{ nodegroup.name }} Feature=nodegroup_{{ nodegroup.name }}
173171
You can’t perform that action at this time.
0 commit comments