IcingaConfig: add more object types

This commit is contained in:
Thomas Gelf 2015-06-17 10:53:41 +02:00
parent ed8e472cba
commit a25bb80004
1 changed files with 5 additions and 1 deletions

View File

@ -30,9 +30,13 @@ class IcingaConfig
$this->db = $db; $this->db = $db;
$this $this
->createFileFromDb('zone') ->createFileFromDb('zone')
->createFileFromDb('endpoint')
->createFileFromDb('command') ->createFileFromDb('command')
->createFileFromDb('hostGroup')
->createFileFromDb('host') ->createFileFromDb('host')
->createFileFromDb('serviceGroup')
->createFileFromDb('service') ->createFileFromDb('service')
->createFileFromDb('userGroup')
->createFileFromDb('user') ->createFileFromDb('user')
; ;
@ -53,7 +57,7 @@ class IcingaConfig
$file->prepend("library \"methods\"\n\n"); $file->prepend("library \"methods\"\n\n");
} }
$file->addObjects($objects); $file->addObjects($objects);
$this->files[$type . 's.conf'] = $file; $this->files[strtolower($type) . 's.conf'] = $file;
} }
return $this; return $this;