mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-10 06:23:05 -05:00
LegacyConfigRenderer: Don't render import sub-nodes
This commit is contained in:
parent
00b88055f7
commit
1a36e4d94a
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ namespace Icinga\Module\Businessprocess\Storage;
|
|||
|
||||
use Icinga\Module\Businessprocess\BpNode;
|
||||
use Icinga\Module\Businessprocess\BpConfig;
|
||||
use Icinga\Module\Businessprocess\ImportedNode;
|
||||
|
||||
class LegacyConfigRenderer
|
||||
{
|
||||
|
|
@ -110,6 +111,10 @@ class LegacyConfigRenderer
|
|||
$cfg = '';
|
||||
|
||||
foreach ($node->getChildBpNodes() as $name => $child) {
|
||||
if ($child instanceof ImportedNode) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$cfg .= $this->requireRenderedBpNode($child) . "\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue