icinga-powershell-framework/lib/icinga/plugin/Set-IcingaInternalPluginException.psm1

12 lines
312 B
PowerShell
Raw Normal View History

function Set-IcingaInternalPluginException()
{
param (
[string]$PluginException = ''
);
2021-12-09 11:42:06 -05:00
# Only catch the first exception
if ([string]::IsNullOrEmpty($Global:Icinga.Private.Scheduler.PluginException)) {
$Global:Icinga.Private.Scheduler.PluginException = $PluginException;
}
}