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

12 lines
292 B
PowerShell
Raw Normal View History

function Set-IcingaInternalPluginExitCode()
{
param (
$ExitCode = 0
);
2021-12-09 11:42:06 -05:00
# Only add the first exit code we should cover during one runtime
if ($null -eq $Global:Icinga.Private.Scheduler.ExitCode) {
$Global:Icinga.Private.Scheduler.ExitCode = $ExitCode;
}
}