Update module version to 1.1.0 and enhance Merge-DSCConfigurationData function to prevent modifications to sealed parameters
This commit is contained in:
14
Private/Test-ConfigurationDataNodeSealed.ps1
Normal file
14
Private/Test-ConfigurationDataNodeSealed.ps1
Normal 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])
|
||||
}
|
||||
Reference in New Issue
Block a user