mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Removed no longer required variables from Check Package
This commit is contained in:
parent
54ef544b8a
commit
dafc256ec4
1 changed files with 0 additions and 2 deletions
|
|
@ -289,11 +289,9 @@ function New-IcingaCheckPackage()
|
||||||
if ([int]$this.exitcode -eq [int]$IcingaEnums.IcingaExitCode.Unknown) {
|
if ([int]$this.exitcode -eq [int]$IcingaEnums.IcingaExitCode.Unknown) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$worstCheck = $null;
|
|
||||||
foreach ($check in $this.checks) {
|
foreach ($check in $this.checks) {
|
||||||
if ([int]$this.exitcode -lt $check.exitcode) {
|
if ([int]$this.exitcode -lt $check.exitcode) {
|
||||||
$this.exitcode = $check.exitcode;
|
$this.exitcode = $check.exitcode;
|
||||||
$worstCheck = $check;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue