Skip to content

Commit 610a8ed

Browse files
committed
Fix jinja
1 parent 464d952 commit 610a8ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/gres.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ AutoDetect=off
66
{% for gres in group.gres %}
77
{% set gres_name, gres_type, _ = gres.conf.split(':') %}
88
{% set group_name = group.cluster_name|default(openhpc_cluster_name) ~ '_' ~ group.name %}
9+
{% set file = gres.file | default('') %}
10+
{% set autodetect = gres.autodetect | default('') %}
911
{% set inventory_group_hosts = groups.get(group_name, []) %}
1012
{% for hostlist in (inventory_group_hosts | hostlist_expression) %}
11-
set file = gres.file | default('')
12-
set autodetect = gres.autodetect | default('')
1313
NodeName={{ hostlist }} Name={{ gres_name }} Type={{ gres_type }}{% if gres.file is truthy %} File={{ gres.file }}{% endif %}{% if gres.autodetect is truthy %} AutoDetect={{ gres.autodetect }}{%endif%}
1414

1515
{% endfor %}

0 commit comments

Comments
 (0)