[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaServiceSet: render custom vars

git at icinga.org git at icinga.org
Thu Oct 27 18:37:05 CEST 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Oct 20 07:14:54 2016 +0000

IcingaServiceSet: render custom vars

---

 library/Director/Objects/IcingaServiceSet.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/library/Director/Objects/IcingaServiceSet.php b/library/Director/Objects/IcingaServiceSet.php
index 1aa8621..09dbc1e 100644
--- a/library/Director/Objects/IcingaServiceSet.php
+++ b/library/Director/Objects/IcingaServiceSet.php
@@ -101,6 +101,7 @@ class IcingaServiceSet extends IcingaObject
                 $service->setAssignments($this->getAssignments());
             }
 
+            $service->vars = $this->vars;
             $service->host_id = $this->host_id;
             $file->addObject($service);
         }
@@ -142,6 +143,7 @@ class IcingaServiceSet extends IcingaObject
         foreach ($this->getServiceObjects() as $service) {
             $service->object_type = 'object';
             $service->host_id = $this->host_id;
+            $service->vars = $this->vars;
             $file->addLegacyObject($service);
         }
     }



More information about the icinga-checkins mailing list