IcingaConfig: add parent zone to auto-zones

This commit is contained in:
Thomas Gelf 2015-12-18 15:42:22 +01:00
parent ce44252f8e
commit 129cc8220b
1 changed files with 3 additions and 2 deletions

View File

@ -370,8 +370,9 @@ throw $e;
$endpoints[] = IcingaEndpoint::create($props);
$zones[] = IcingaZone::create(array(
'object_name' => $name
))->setEndpointList(array($name));
'object_name' => $name,
'parent' => $this->getMasterZoneName()
), $this->connection)->setEndpointList(array($name));
}
$this->createFileForObjects('endpoint', $endpoints);