IcingaObject: clean up zone rendering

This commit is contained in:
Thomas Gelf 2015-12-10 11:34:46 +01:00
parent 1116bc4331
commit 5091db2268
1 changed files with 2 additions and 11 deletions

View File

@ -803,19 +803,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
);
}
protected function renderZoneProperty($zoneId, $propertyName = 'zone')
{
// TODO: set file info?
return '';
return c::renderKeyValue(
$propertyName,
c::renderString($this->connection->getZoneName($zoneId))
);
}
protected function renderZone_id()
{
return $this->renderZoneProperty($this->zone_id);
// We do not render zone properties, objects are stored to zone dirs
return '';
}
protected function renderCustomExtensions()