From a00d4dce2346edf43daf4fcda9b301ac7658d66e Mon Sep 17 00:00:00 2001 From: Jakob Guldberg Aaes Date: Tue, 14 Nov 2023 10:16:16 +0100 Subject: [PATCH] we can't sort with generic keys as they do not necessarily have the same keys --- templates/gres.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gres.conf.j2 b/templates/gres.conf.j2 index c5c6855..9cc9c55 100644 --- a/templates/gres.conf.j2 +++ b/templates/gres.conf.j2 @@ -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 %}