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