[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaService: use string helper for assignments

git at icinga.org git at icinga.org
Tue Aug 30 10:48:34 CEST 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Aug 27 08:46:46 2016 +0000

IcingaService: use string helper for assignments

---

 library/Director/Objects/IcingaService.php |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php
index 207b27e..5427ff0 100644
--- a/library/Director/Objects/IcingaService.php
+++ b/library/Director/Objects/IcingaService.php
@@ -139,10 +139,10 @@ class IcingaService extends IcingaObject
             return parent::renderAssignments();
         }
 
-        // TODO: use assignment renderer, escape host
+        // TODO: use assignment renderer?
         $filter = sprintf(
-            'assign where "%s" in host.templates',
-            $this->host
+            'assign where %s in host.templates',
+            c::renderString($this->host)
         );
 
         return "\n    " . $filter . "\n";



More information about the icinga-checkins mailing list