CustomVariables(Legacy): Ignore ARGn vars in toLegacyConfigString

refs #12919
This commit is contained in:
Markus Frosch 2016-11-03 13:41:26 +01:00
parent 6b9d23cdd5
commit df299fe314
1 changed files with 6 additions and 0 deletions

View File

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