mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes array handling for checks
This commit is contained in:
parent
e21011f564
commit
16d2677c4f
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ function New-IcingaCheckPackage()
|
|||
$check.__SetCheckOutput();
|
||||
$check.__SetVerbosity($this.__GetVerbosity());
|
||||
$check.__SetParent($this);
|
||||
$this.__Checks += $check;
|
||||
[array]$this.__Checks += $check;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ function New-IcingaCheckPackage()
|
|||
return;
|
||||
}
|
||||
|
||||
$this.__Checks = $this.__Checks | Sort-Object -Property Name;
|
||||
[array]$this.__Checks = ($this.__Checks | Sort-Object -Property Name);
|
||||
|
||||
# Loop all checks to understand the content of result
|
||||
foreach ($check in $this.__Checks) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue