IcingaObject(Legacy): Render legacy customvars

refs #12919
This commit is contained in:
Markus Frosch 2016-10-14 11:53:26 +02:00
parent 1592894fd7
commit ab7d0fb085
1 changed files with 13 additions and 1 deletions

View File

@ -1851,6 +1851,18 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
}
}
/**
* @return string
*/
protected function renderLegacyCustomVars()
{
if ($this->supportsCustomVars()) {
return $this->vars()->toLegacyConfigString();
} else {
return '';
}
}
/**
* @return string
*/
@ -2024,7 +2036,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
$this->renderLegacyGroups(),
//$this->renderMultiRelations(),
//$this->renderCustomExtensions(),
//$this->renderCustomVars(),
$this->renderLegacyCustomVars(),
$this->renderLegacySuffix()
));