mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
19 lines
472 B
PowerShell
19 lines
472 B
PowerShell
|
|
function Add-IcingaForWindowsInstallerDisabledEntry()
|
||
|
|
{
|
||
|
|
param (
|
||
|
|
[string]$Name = '',
|
||
|
|
[string]$Reason = ''
|
||
|
|
);
|
||
|
|
|
||
|
|
if ([string]::IsNullOrEmpty($Reason)) {
|
||
|
|
$Reason = 'Generic disable message';
|
||
|
|
}
|
||
|
|
|
||
|
|
if ($Global:Icinga.InstallWizard.DisabledEntries.ContainsKey($Name)) {
|
||
|
|
$Global:Icinga.InstallWizard.DisabledEntries[$Name] = $Reason;
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
$Global:Icinga.InstallWizard.DisabledEntries.Add($Name, $Reason);
|
||
|
|
}
|