[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaZone: no endpoint fetching for new zones

git at icinga.org git at icinga.org
Fri Feb 5 15:39:24 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: c285dc260d786705ea7844cff6e5230e315fd832
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=c285dc260d786705ea7844cff6e5230e315fd832

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Feb  5 15:38:57 2016 +0100

IcingaZone: no endpoint fetching for new zones

---

 library/Director/Objects/IcingaZone.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Objects/IcingaZone.php b/library/Director/Objects/IcingaZone.php
index 05942c3..19b7ce2 100644
--- a/library/Director/Objects/IcingaZone.php
+++ b/library/Director/Objects/IcingaZone.php
@@ -48,7 +48,7 @@ class IcingaZone extends IcingaObject
     // TODO: Move this away, should be prefetchable:
     protected function listEndpoints()
     {
-        if ($this->endpointList === null) {
+        if ($this->id && $this->endpointList === null) {
             $db = $this->getDb();
             $query = $db->select()
                 ->from('icinga_endpoint', 'object_name')



More information about the icinga-checkins mailing list