IcingaConfig: add parent zone to auto-zones
This commit is contained in:
parent
ce44252f8e
commit
129cc8220b
|
@ -370,8 +370,9 @@ throw $e;
|
||||||
|
|
||||||
$endpoints[] = IcingaEndpoint::create($props);
|
$endpoints[] = IcingaEndpoint::create($props);
|
||||||
$zones[] = IcingaZone::create(array(
|
$zones[] = IcingaZone::create(array(
|
||||||
'object_name' => $name
|
'object_name' => $name,
|
||||||
))->setEndpointList(array($name));
|
'parent' => $this->getMasterZoneName()
|
||||||
|
), $this->connection)->setEndpointList(array($name));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->createFileForObjects('endpoint', $endpoints);
|
$this->createFileForObjects('endpoint', $endpoints);
|
||||||
|
|
Loading…
Reference in New Issue