From 242f2912009f0ac2d604006879d0b9ae0fca86ce Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 8 Sep 2026 15:50:38 +0200 Subject: [PATCH] fix(templates): render the documented function value in shell rc files The template read `function.body`, while README and defaults/main.yaml document the key as `functions[].value`. Every documented example therefore rendered an empty function body, and with a strict undefined policy the template failed outright. The documentation is the contract for this role, so the template follows it instead of the other way around. Co-authored-by: Copilot --- templates/shell_rc_file.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shell_rc_file.j2 b/templates/shell_rc_file.j2 index b0569d4..da83f41 100644 --- a/templates/shell_rc_file.j2 +++ b/templates/shell_rc_file.j2 @@ -5,7 +5,7 @@ {% if shell_rc_file.functions is defined %} {% for function in shell_rc_file.functions %} function {{ function.name }} { -{{ function.body | indent(2, True) }} +{{ function.value | indent(2, True) }} } {% endfor %}