From df299fe314dd6f90857813c42dd1e1c8e677face Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Thu, 3 Nov 2016 13:41:26 +0100 Subject: [PATCH] CustomVariables(Legacy): Ignore ARGn vars in toLegacyConfigString refs #12919 --- library/Director/CustomVariable/CustomVariables.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Director/CustomVariable/CustomVariables.php b/library/Director/CustomVariable/CustomVariables.php index d3d3cca1..cc0323bf 100644 --- a/library/Director/CustomVariable/CustomVariables.php +++ b/library/Director/CustomVariable/CustomVariables.php @@ -295,6 +295,12 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer /** @var CustomVariable $var */ // TODO: ctype_alnum + underscore? $value = null; + + // vars with ARGn will be handled by IcingaObject::renderLegacyCheck_command + if (substr($key, 0, 3) == 'ARG') { + continue; + } + switch ($type = $var->getType()) { case 'String': # TODO: Make Prefetchable