From 73ce2aa8e5bb1ece9512e4d87142dbd6ebf9978c Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 19 Aug 2019 18:07:51 +0200 Subject: [PATCH] Fixed missing argument of check object for InitCheck --- lib/icinga/plugin/New-IcingaCheckPackage.psm1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 index 8d8428e..5c11fcb 100644 --- a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 @@ -35,6 +35,8 @@ function New-IcingaCheckPackage() } $Check | Add-Member -membertype ScriptMethod -name 'InitCheck' -value { + param($check); + if ($null -eq $check) { return; }