[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch-2: WIP: IcingaService: Allow templates to have assignments

git at icinga.org git at icinga.org
Fri Jul 22 12:03:50 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch-2
Commit: df2091e15f9fd26433e82239f77748475ca4e289
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=df2091e15f9fd26433e82239f77748475ca4e289

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Tue Jul 19 17:08:43 2016 +0200

WIP: IcingaService: Allow templates to have assignments

---

 library/Director/Objects/IcingaService.php |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php
index 207b27e..8774167 100644
--- a/library/Director/Objects/IcingaService.php
+++ b/library/Director/Objects/IcingaService.php
@@ -93,6 +93,11 @@ class IcingaService extends IcingaObject
             return true;
         }
 
+        if ($this->isTemplate()) {
+            // TODO: templates support apply
+            return true;
+        }
+
         return $this->hasProperty('object_type')
             && $this->object_type === 'apply';
     }



More information about the icinga-checkins mailing list