We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21011f commit 16d2677Copy full SHA for 16d2677
lib/icinga/plugin/New-IcingaCheckPackage.psm1
@@ -67,7 +67,7 @@ function New-IcingaCheckPackage()
67
$check.__SetCheckOutput();
68
$check.__SetVerbosity($this.__GetVerbosity());
69
$check.__SetParent($this);
70
- $this.__Checks += $check;
+ [array]$this.__Checks += $check;
71
}
72
73
@@ -172,7 +172,7 @@ function New-IcingaCheckPackage()
172
return;
173
174
175
- $this.__Checks = $this.__Checks | Sort-Object -Property Name;
+ [array]$this.__Checks = ($this.__Checks | Sort-Object -Property Name);
176
177
# Loop all checks to understand the content of result
178
foreach ($check in $this.__Checks) {
0 commit comments