mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaService: Do not attach config
to custom variables for apply for rule
This commit is contained in:
parent
dfd9764e12
commit
d34f2bf7c4
@ -343,24 +343,6 @@ class IcingaService extends IcingaObject implements ExportInterface
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected function renderCustomVars()
|
||||
{
|
||||
$vars = '';
|
||||
if (
|
||||
$this->isApplyRule()
|
||||
&& !$this->hasBeenAssignedToHostTemplate()
|
||||
&& $this->get('apply_for') !== null
|
||||
&& $this->isApplyRuleforDictionary(substr($this->get('apply_for'), strlen('host.vars.')))
|
||||
) {
|
||||
$vars .= "\n vars += config\n";
|
||||
}
|
||||
|
||||
return $vars . parent::renderCustomVars();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user