mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes filtering of 'core' plugin argument
This commit is contained in:
parent
35d5891a6a
commit
c1170402c6
1 changed files with 157 additions and 161 deletions
|
|
@ -165,9 +165,6 @@ function Get-IcingaCheckCommandConfig()
|
|||
# Loop through parameters of a given command
|
||||
foreach ($parameter in $Data.parameters.parameter) {
|
||||
|
||||
# Filter for Parameter 'core', because its set by default
|
||||
if ($parameter.name -ne 'core') {
|
||||
|
||||
# IsNumeric-Check on position to determine the order-value
|
||||
If (Test-Numeric($parameter.position) -eq $TRUE) {
|
||||
[string]$Order = [int]$parameter.position + 1;
|
||||
|
|
@ -343,7 +340,6 @@ function Get-IcingaCheckCommandConfig()
|
|||
# Increment FieldID, so unique datafields are added.
|
||||
[int]$FieldID = [int]$FieldID + 1;
|
||||
}
|
||||
}
|
||||
|
||||
# Increment FieldNumeration, so unique fields for a given command are added.
|
||||
[int]$FieldNumeration = [int]$FieldNumeration + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue