mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaConfig: do not render v2-related helpers...
...for legacy config
This commit is contained in:
parent
687f2aff1c
commit
e58a70613c
@ -431,8 +431,10 @@ class IcingaConfig
|
||||
->createFileFromDb('notification')
|
||||
;
|
||||
|
||||
$this->configFile('zones.d/director-global/commands')
|
||||
->prepend("library \"methods\"\n\n");
|
||||
if (! $this->isLegacy()) {
|
||||
$this->configFile('zones.d/director-global/commands')
|
||||
->prepend("library \"methods\"\n\n");
|
||||
}
|
||||
|
||||
PrefetchCache::forget();
|
||||
IcingaHost::clearAllPrefetchCaches();
|
||||
@ -444,6 +446,10 @@ class IcingaConfig
|
||||
|
||||
protected function prepareGlobalBasics()
|
||||
{
|
||||
if ($this->isLegacy()) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->configFile(
|
||||
sprintf(
|
||||
'zones.d/%s/001-director-basics',
|
||||
|
Loading…
x
Reference in New Issue
Block a user