mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Removed perf data output for unknown return codes
This commit is contained in:
parent
a05a41ca86
commit
a32ec4f17c
1 changed files with 3 additions and 1 deletions
|
|
@ -20,7 +20,9 @@ function New-IcingaCheckresult()
|
||||||
# Compile the check / package if not already done
|
# Compile the check / package if not already done
|
||||||
$this.check.Compile() | Out-Null;
|
$this.check.Compile() | Out-Null;
|
||||||
|
|
||||||
Write-Host ([string]::Format('| {0}', $this.check.GetPerfData()));
|
if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown) {
|
||||||
|
Write-Host ([string]::Format('| {0}', $this.check.GetPerfData()));
|
||||||
|
}
|
||||||
|
|
||||||
return $this.check.exitcode;
|
return $this.check.exitcode;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue