mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
14 lines
342 B
PowerShell
14 lines
342 B
PowerShell
function New-IcingaPowerShellConfigItem()
|
|
{
|
|
param(
|
|
$ConfigObject,
|
|
[string]$ConfigKey,
|
|
$ConfigValue = $null
|
|
);
|
|
|
|
if ($null -eq $ConfigValue) {
|
|
$ConfigValue = (New-Object -TypeName PSOBject);
|
|
}
|
|
|
|
$ConfigObject | Add-Member -MemberType NoteProperty -Name $ConfigKey -Value $ConfigValue;
|
|
}
|