From b0bea9a6a4c27e74ff3a0da1267236eaedb20a6c Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 22 Jul 2019 18:03:19 +0200 Subject: [PATCH] Replaced Silent argument for verbose on check packages --- lib/icinga/plugin/New-IcingaCheckPackage.psm1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 index aa857f9..6d51045 100644 --- a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 @@ -51,7 +51,7 @@ function New-IcingaCheckPackage() } $Check | Add-Member -membertype ScriptMethod -name 'Compile' -value { - param([bool]$Silent); + param([bool]$Verbose); if ($this.compiled) { return; @@ -90,7 +90,7 @@ function New-IcingaCheckPackage() $this.exitcode = $IcingaEnums.IcingaExitCode.Ok; } - if ($Silent -eq $FALSE -And [int]$this.exitcode -ne $IcingaEnums.IcingaExitCode.Unknown) { + if ($Verbose -eq $TRUE -Or [int]$this.exitcode -ne $IcingaEnums.IcingaExitCode.Unknown) { $this.PrintOutputMessages(); } @@ -100,7 +100,7 @@ function New-IcingaCheckPackage() } $Check | Add-Member -membertype ScriptMethod -name 'SilentCompile' -value { - $this.Compile($TRUE) | Out-Null; + $this.Compile($FALSE) | Out-Null; } $Check | Add-Member -membertype ScriptMethod -name 'GetOkCount' -value {