Files
warewulf/internal/pkg
Jonathon Anderson 57d28c5bc9 Expand nodes when rendering overlay templates
Before #1628, all default constructors for nodes and profiles attempted to
construct objects with pre-populated empty fields (e.g., for pointers to member
structs and for collections that default to nil). Changes to MergeNode in #1629
changed this behavior intentionally to simplify the generation of minimal json;
but this had the unintended side-effect of breaking existing templates that may
now encounter a nil pointer, particularly when accessing member structs.

Introduced here, the Expand() methods on Node and Profile are now responsible
for populating such fields, and Node.Expand() is now called during template
processing.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-19 04:26:01 -07:00
..
2023-03-24 19:47:22 +01:00
2024-10-28 15:20:41 -06:00
2024-12-25 12:34:23 -07:00
2024-10-31 14:52:48 -06:00
2024-10-17 15:30:54 -04:00