IcingaEndpoint: work on Zone, not on the id

fixes 
This commit is contained in:
Thomas Gelf 2017-03-29 12:52:54 +02:00
parent 58ba7f9f86
commit 6234648a1f
1 changed files with 1 additions and 1 deletions
library/Director/Objects

View File

@ -87,7 +87,7 @@ class IcingaEndpoint extends IcingaObject
public function getRenderingZone(IcingaConfig $config = null) public function getRenderingZone(IcingaConfig $config = null)
{ {
try { try {
if ($zone = $this->getResolvedProperty('zone_id')) { if ($zone = $this->getResolvedRelated('zone')) {
return $zone->getRenderingZone($config); return $zone->getRenderingZone($config);
} }
} catch (NestingError $e) { } catch (NestingError $e) {