IcingaService: do not hardcode override template

This commit is contained in:
Thomas Gelf 2016-09-08 12:08:30 +00:00
parent 8dd7fcd13b
commit d44c06fce0
1 changed files with 4 additions and 1 deletions

View File

@ -167,7 +167,10 @@ class IcingaService extends IcingaObject
protected function renderImportHostVarOverrides()
{
return "\n" . ' import "host var overrides (Director)"' . "\n";
return sprintf(
"\n import \"%s\"\n",
$this->connection->settings()->override_services_templatename
);
}
protected function renderCustomExtensions()