Fix newline handling in file, softlink, and ImportLink template functions
Use state-based routing instead of sentinel strings, so whitespace-trimming
syntax (e.g. `{{- file "name" -}}`) correctly creates all named files and
symlinks.
Fixes: #2118
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
Co-authored-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -24,6 +24,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Fix `wwctl node set --all` to set values on all nodes
|
||||
- Fix path traversal vulnerability (CWE-23)
|
||||
- Bump minimum golang version to 1.25.5 to address stdlib CVEs
|
||||
- Fix `{{ file }}`, `{{ softlink }}`, and `{{ ImportLink }}` template functions
|
||||
to use state-based routing instead of sentinel strings, so whitespace-trimming
|
||||
syntax (e.g. `{{- file "name" -}}`) correctly creates all named files and
|
||||
symlinks. #2118
|
||||
|
||||
### Dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user