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
156
156
{% set first_host_hv = hostvars [first_host ] %}
157
157
{% set ram_mb = (first_host_hv ['ansible_memory_mb' ]['real' ]['total' ] * (nodegroup .ram_multiplier | default (openhpc_ram_multiplier ))) | int %}
158
158
{% 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(',') }} {{ '' -}}
161
160
Features={{ (['nodegroup_' ~ nodegroup.name] + nodegroup.features | default([] ) ) | join(',') }} {{ '' -}}
162
161
State=UNKNOWN {{ '' -}}
163
162
RealMemory={{ nodegroup.ram_mb | default(ram_mb) }} {{ '' -}}
@@ -167,7 +166,6 @@ NodeName={{ hostlist }} {{ '' -}}
167
166
{{ nodegroup.node_params | default({}) | dict2parameters }} {{ '' -}}
168
167
{% if 'gres' in nodegroup %} Gres={{ ','.join(nodegroup.gres | map(attribute='conf')) }}{% endif %}
169
168
170
- {% endfor %} {# hostlists #}
171
169
{% endif %} {# 1 or more hosts in inventory #}
172
170
NodeSet=nodegroup_{{ nodegroup.name }} Feature=nodegroup_{{ nodegroup.name }}
173
171
You can’t perform that action at this time.
0 commit comments