Fixed output for Check Results with checks only

This commit is contained in:
Lord Hepipud 2019-07-22 18:01:12 +02:00
parent e66f572c05
commit 6cbbf91049

View file

@ -18,7 +18,7 @@ function New-IcingaCheckresult()
}
# Compile the check / package if not already done
$this.check.Compile() | Out-Null;
$this.check.Compile($TRUE) | Out-Null;
if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown -And -Not $this.noperfdata) {
Write-Host ([string]::Format('| {0}', $this.check.GetPerfData()));