mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Replaced Silent argument for verbose on check packages
This commit is contained in:
parent
6cbbf91049
commit
b0bea9a6a4
1 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ function New-IcingaCheckPackage()
|
||||||
}
|
}
|
||||||
|
|
||||||
$Check | Add-Member -membertype ScriptMethod -name 'Compile' -value {
|
$Check | Add-Member -membertype ScriptMethod -name 'Compile' -value {
|
||||||
param([bool]$Silent);
|
param([bool]$Verbose);
|
||||||
|
|
||||||
if ($this.compiled) {
|
if ($this.compiled) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -90,7 +90,7 @@ function New-IcingaCheckPackage()
|
||||||
$this.exitcode = $IcingaEnums.IcingaExitCode.Ok;
|
$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();
|
$this.PrintOutputMessages();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ function New-IcingaCheckPackage()
|
||||||
}
|
}
|
||||||
|
|
||||||
$Check | Add-Member -membertype ScriptMethod -name 'SilentCompile' -value {
|
$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 {
|
$Check | Add-Member -membertype ScriptMethod -name 'GetOkCount' -value {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue