mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixed output for Check Results with checks only
This commit is contained in:
parent
e66f572c05
commit
6cbbf91049
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ 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($TRUE) | Out-Null;
|
||||||
|
|
||||||
if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown -And -Not $this.noperfdata) {
|
if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown -And -Not $this.noperfdata) {
|
||||||
Write-Host ([string]::Format('| {0}', $this.check.GetPerfData()));
|
Write-Host ([string]::Format('| {0}', $this.check.GetPerfData()));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue