From d34f2bf7c4bf4789aa0fd0f7006b990bda5290d9 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Fri, 16 May 2025 15:15:17 +0200 Subject: [PATCH] IcingaService: Do not attach `config` to custom variables for apply for rule --- library/Director/Objects/IcingaService.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index 6a7541ea..77412487 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -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 */