mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
c70623ec7c
commit
2a2460ae67
@ -232,7 +232,12 @@ bool RepositoryUtility::AddObject(const String& name, const String& type, const
|
|||||||
|
|
||||||
String fname, fragment;
|
String fname, fragment;
|
||||||
BOOST_FOREACH(boost::tie(fname, fragment), ConfigFragmentRegistry::GetInstance()->GetItems()) {
|
BOOST_FOREACH(boost::tie(fname, fragment), ConfigFragmentRegistry::GetInstance()->GetItems()) {
|
||||||
ConfigCompiler::CompileText(fname, fragment);
|
Expression *expression = ConfigCompiler::CompileText(fname, fragment);
|
||||||
|
if (expression) {
|
||||||
|
VMFrame frame;
|
||||||
|
expression->Evaluate(frame);
|
||||||
|
delete expression;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigType::Ptr ctype = ConfigType::GetByName(type);
|
ConfigType::Ptr ctype = ConfigType::GetByName(type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user