IcingaConfig: remove hard-coded global zone

Anyways, this line should be obsolete
This commit is contained in:
Thomas Gelf 2018-05-04 08:45:32 +02:00
parent b6c0895d33
commit 4c77a32ee0
1 changed files with 4 additions and 3 deletions

View File

@ -445,7 +445,6 @@ class IcingaConfig
protected function generateFromDb()
{
PrefetchCache::initialize($this->connection);
$start = microtime(true);
MemoryLimit::raiseTo('1024M');
@ -478,8 +477,10 @@ class IcingaConfig
;
if (! $this->isLegacy()) {
$this->configFile('zones.d/director-global/commands')
->prepend("library \"methods\"\n\n");
$this->configFile(sprintf(
'zones.d/%s/commands',
$this->connection->getDefaultGlobalZoneName()
))->prepend("library \"methods\"\n\n");
}
PrefetchCache::forget();