From d4b948504ceb829d65274205733425e2770e0df7 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 27 Mar 2026 14:20:39 +0100 Subject: [PATCH] fix: remove comments while reading YAML files --- CHANGELOG.md | 2 ++ Pmodules/libpmodules.bash.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa20f0..557012f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ * Bugfix: un-using an overlay didn't remove the directories of the overlay in all cases. (#1387) +* Bugfix: remove comments while reading YAML config files + (#1380) * Bugfix: Under some conditions it could happen, that the variable GroupDepths($group) was undefined in the function get\_load\_hints(). (#1368, #1384) diff --git a/Pmodules/libpmodules.bash.in b/Pmodules/libpmodules.bash.in index 5ab0993..bc93c43 100644 --- a/Pmodules/libpmodules.bash.in +++ b/Pmodules/libpmodules.bash.in @@ -146,7 +146,7 @@ yml::read_file(){ local -- yml_fname="$2" local -- yml_node="$3" - yml_content=$( ${yq} -Ne e "${yml_node}|explode(.)" "${yml_fname}" 2>/dev/null ) || \ + yml_content=$( ${yq} -Ne e "... comments=\"\"|${yml_node}|explode(.)" "${yml_fname}" 2>/dev/null ) || \ yml::die_read_file "${yml_fname}" }