IcingaConfig: do not render disabled objectst

This commit is contained in:
Thomas Gelf 2016-02-17 19:59:25 +01:00
parent 520644a67a
commit 35e0830658
1 changed files with 2 additions and 0 deletions

View File

@ -406,6 +406,8 @@ throw $e;
$file = null; $file = null;
foreach ($objects as $object) { foreach ($objects as $object) {
if ($object->disabled === 'y') continue;
if ($object->isExternal()) { if ($object->isExternal()) {
if ($type === 'zone') { if ($type === 'zone') {
$this->zoneMap[$object->id] = $object->object_name; $this->zoneMap[$object->id] = $object->object_name;