Fixed output for Check Results with checks only

This commit is contained in:
Lord Hepipud 2019-07-22 18:01:12 +02:00
parent af133f700a
commit 596c5375b7

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()));