IcingaZone: no endpoint fetching for new zones
This commit is contained in:
parent
31b0e7a180
commit
c285dc260d
|
@ -48,7 +48,7 @@ class IcingaZone extends IcingaObject
|
||||||
// TODO: Move this away, should be prefetchable:
|
// TODO: Move this away, should be prefetchable:
|
||||||
protected function listEndpoints()
|
protected function listEndpoints()
|
||||||
{
|
{
|
||||||
if ($this->endpointList === null) {
|
if ($this->id && $this->endpointList === null) {
|
||||||
$db = $this->getDb();
|
$db = $this->getDb();
|
||||||
$query = $db->select()
|
$query = $db->select()
|
||||||
->from('icinga_endpoint', 'object_name')
|
->from('icinga_endpoint', 'object_name')
|
||||||
|
|
Loading…
Reference in New Issue