icinga-powershell-framework/lib/icinga/plugin/Set-IcingaInternalPluginException.psm1
2022-01-25 10:00:19 +01:00

11 lines
312 B
PowerShell

function Set-IcingaInternalPluginException()
{
param (
[string]$PluginException = ''
);
# Only catch the first exception
if ([string]::IsNullOrEmpty($Global:Icinga.Private.Scheduler.PluginException)) {
$Global:Icinga.Private.Scheduler.PluginException = $PluginException;
}
}