Update module version to 1.1.0 and enhance Merge-DSCConfigurationData function to prevent modifications to sealed parameters

This commit is contained in:
Torsten Brendgen
2026-07-07 21:50:47 +02:00
parent edf7c8ad34
commit 793c4acddd
4 changed files with 85 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
function Test-ConfigurationDataNodeSealed {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true)]
[System.Collections.IDictionary]
$Node
)
if(-not (Test-ConfigurationDataDictionaryKey -Dictionary $Node -Key "Sealed")){
return $false
}
return [System.Management.Automation.LanguagePrimitives]::ConvertTo($Node["Sealed"], [bool])
}