mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-24 16:49:52 -05:00
Fixed NoPerfData handling for Check Result function
This commit is contained in:
parent
4392714da3
commit
824dde7518
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ function New-IcingaCheckresult()
|
|||
# Compile the check / package if not already done
|
||||
$this.check.Compile() | Out-Null;
|
||||
|
||||
if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown) {
|
||||
if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown -And -Not $this.noperfdata) {
|
||||
Write-Host ([string]::Format('| {0}', $this.check.GetPerfData()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue