IcingaService: use string helper for assignments

This commit is contained in:
Thomas Gelf 2016-08-27 08:46:46 +00:00
parent 77c915c897
commit 58441b88ad

View File

@ -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";