libpmodules (#385): accept keys for newer versions in overlay config

This commit is contained in:
2025-02-03 14:31:22 +01:00
parent 04193cdf15
commit cc257bbe41
+4 -3
View File
@@ -262,9 +262,10 @@ pm::read_config(){
OverlayInfo[${ol_name}:modulepath]=$(${envsubst} <<< "${modulepath%:}")
;;
* )
std::die 3 "%s -- %s\n%s" \
"Invalid key in configuration" \
"${key}" "${yaml_input}"
[[ -v OverlayConfigKeys[${key}] ]] || \
std::die 3 "%s -- %s\n%s" \
"Invalid key in configuration" \
"${key}" "${yaml_input}"
;;
esac