mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-23 16:19:37 -05:00
Removed duplicate check outputs
This commit is contained in:
parent
7fd9f35de0
commit
99825a4a57
1 changed files with 0 additions and 3 deletions
|
|
@ -60,21 +60,18 @@ function New-IcingaCheckPackage()
|
|||
$this.GetWorstExitCode();
|
||||
$this.exitcode = $IcingaEnums.IcingaExitCode.Critical;
|
||||
} else {
|
||||
$this.WriteAllOutput();
|
||||
$this.exitcode = $IcingaEnums.IcingaExitCode.Ok;
|
||||
}
|
||||
} elseif([int]$this.opmin -ne -1) {
|
||||
if ($this.CheckMinimumOk() -eq $FALSE) {
|
||||
$this.GetWorstExitCode();
|
||||
} else {
|
||||
$this.WriteAllOutput();
|
||||
$this.exitcode = $IcingaEnums.IcingaExitCode.Ok;
|
||||
}
|
||||
} elseif([int]$this.opmax -ne -1) {
|
||||
if ($this.CheckMaximumOk() -eq $FALSE) {
|
||||
$this.GetWorstExitCode();
|
||||
} else {
|
||||
$this.WriteAllOutput();
|
||||
$this.exitcode = $IcingaEnums.IcingaExitCode.Ok;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue