Skip to content

Commit

Permalink
we can't sort with generic keys as they do not necessarily have the s…
Browse files Browse the repository at this point in the history
…ame keys
  • Loading branch information
Jakob Guldberg Aaes committed Nov 14, 2023
1 parent 2c3e70a commit a00d4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/gres.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##

{% set conf = lookup('vars', item.config) %}
{% for key in conf | sort %}
{% for key in conf %}
{% if key['NodeName'] is not none %}
NodeName={{ key['NodeName'] }}{% for key in key | sort %}{% if key != 'NodeName' %} {{ key }}={{ key[key] }}{% endif %}{% endfor %}
{% else %}
Expand Down

0 comments on commit a00d4dc

Please sign in to comment.