[icinga-checkins] icinga.org: icingaweb2-module-director/feature/service-set-12891: IcingaServiceSet: render custom vars

git at icinga.org git at icinga.org
Thu Oct 20 09:26:58 CEST 2016


Module: icingaweb2-module-director
Branch: feature/service-set-12891
Commit: 6556cd308ce265a59f8d00258f741cc2cd6b6f45
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=6556cd308ce265a59f8d00258f741cc2cd6b6f45

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