mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 10:57:41 +02:00
IcingaConfig:: fix db connection reference
This commit is contained in:
parent
4c8bc7f3b4
commit
c0ee54b81c
@ -283,7 +283,7 @@ throw $e;
|
|||||||
$this->configFile(
|
$this->configFile(
|
||||||
sprintf(
|
sprintf(
|
||||||
'zones.d/%s/001-director-basics',
|
'zones.d/%s/001-director-basics',
|
||||||
$this->db()->getDefaultGlobalZoneName()
|
$this->connection->getDefaultGlobalZoneName()
|
||||||
)
|
)
|
||||||
)->prepend(
|
)->prepend(
|
||||||
"\nconst DirectorStageDir = dirname(dirname(current_filename))\n"
|
"\nconst DirectorStageDir = dirname(dirname(current_filename))\n"
|
||||||
@ -380,7 +380,7 @@ throw $e;
|
|||||||
$endpoints[] = IcingaEndpoint::create($props);
|
$endpoints[] = IcingaEndpoint::create($props);
|
||||||
$zones[] = IcingaZone::create(array(
|
$zones[] = IcingaZone::create(array(
|
||||||
'object_name' => $name,
|
'object_name' => $name,
|
||||||
'parent' => $this->db()->getMasterZoneName()
|
'parent' => $this->connection->getMasterZoneName()
|
||||||
), $this->connection)->setEndpointList(array($name));
|
), $this->connection)->setEndpointList(array($name));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,8 +401,8 @@ throw $e;
|
|||||||
{
|
{
|
||||||
Benchmark::measure(sprintf('Generating %d %s', count($objects), $type));
|
Benchmark::measure(sprintf('Generating %d %s', count($objects), $type));
|
||||||
if (empty($objects)) return $this;
|
if (empty($objects)) return $this;
|
||||||
$masterZone = $this->db()->getMasterZoneName();
|
$masterZone = $this->connection->getMasterZoneName();
|
||||||
$globalZone = $this->db()->getDefaultGlobalZoneName();
|
$globalZone = $this->connection->getDefaultGlobalZoneName();
|
||||||
$file = null;
|
$file = null;
|
||||||
|
|
||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user