IcingaConfig: remove hard-coded global zone
Anyways, this line should be obsolete
This commit is contained in:
parent
b6c0895d33
commit
4c77a32ee0
|
@ -445,7 +445,6 @@ class IcingaConfig
|
||||||
protected function generateFromDb()
|
protected function generateFromDb()
|
||||||
{
|
{
|
||||||
PrefetchCache::initialize($this->connection);
|
PrefetchCache::initialize($this->connection);
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
|
|
||||||
MemoryLimit::raiseTo('1024M');
|
MemoryLimit::raiseTo('1024M');
|
||||||
|
@ -478,8 +477,10 @@ class IcingaConfig
|
||||||
;
|
;
|
||||||
|
|
||||||
if (! $this->isLegacy()) {
|
if (! $this->isLegacy()) {
|
||||||
$this->configFile('zones.d/director-global/commands')
|
$this->configFile(sprintf(
|
||||||
->prepend("library \"methods\"\n\n");
|
'zones.d/%s/commands',
|
||||||
|
$this->connection->getDefaultGlobalZoneName()
|
||||||
|
))->prepend("library \"methods\"\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
PrefetchCache::forget();
|
PrefetchCache::forget();
|
||||||
|
|
Loading…
Reference in New Issue