Fixed spacing for multi-stack packages / checks in output

This commit is contained in:
Lord Hepipud 2019-07-22 08:37:54 +02:00
parent 9ffb9be1ad
commit 3078a0a937

View file

@ -38,6 +38,10 @@ function New-IcingaCheckPackage()
$Check | Add-Member -membertype ScriptMethod -name 'AddSpacing' -value {
$this.spacing += 1;
foreach ($check in $this.checks) {
$check.spacing = $this.spacing;
$check.AddSpacing();
}
}
$Check | Add-Member -membertype ScriptMethod -name 'Compile' -value {