mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
18 lines
472 B
PowerShell
18 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);
|
|
}
|