From 8ef18f97a9b553e7cc19e9fbded334858c19d86d Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 22 Jul 2019 13:16:14 +0200 Subject: [PATCH] Moved NoPerfData from switch to bool This is required to properly pass the argument from a CheckCommand to the result handler --- lib/icinga/plugin/New-IcingaCheckResult.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/plugin/New-IcingaCheckResult.psm1 b/lib/icinga/plugin/New-IcingaCheckResult.psm1 index bc4dba1..d205e53 100644 --- a/lib/icinga/plugin/New-IcingaCheckResult.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckResult.psm1 @@ -4,7 +4,7 @@ function New-IcingaCheckresult() { param( $Check, - [switch]$NoPerfData, + [bool]$NoPerfData, [switch]$Compile );