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

11 lines
292 B
PowerShell

function Set-IcingaInternalPluginExitCode()
{
param (
$ExitCode = 0
);
# 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;
}
}