mirror of https://github.com/Icinga/icinga2.git
Fix crash when using include_recursive in an object definition
fixes #12022
This commit is contained in:
parent
2de249ed65
commit
906ab613f3
|
@ -180,7 +180,10 @@ Expression *ConfigCompiler::HandleIncludeRecursive(const String& relativeBase, c
|
||||||
|
|
||||||
std::vector<Expression *> expressions;
|
std::vector<Expression *> expressions;
|
||||||
Utility::GlobRecursive(ppath, pattern, boost::bind(&ConfigCompiler::CollectIncludes, boost::ref(expressions), _1, zone, package), GlobFile);
|
Utility::GlobRecursive(ppath, pattern, boost::bind(&ConfigCompiler::CollectIncludes, boost::ref(expressions), _1, zone, package), GlobFile);
|
||||||
return new DictExpression(expressions);
|
|
||||||
|
DictExpression *dict = new DictExpression(expressions);
|
||||||
|
dict->MakeInline();
|
||||||
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigCompiler::HandleIncludeZone(const String& relativeBase, const String& tag, const String& path, const String& pattern, const String& package, std::vector<Expression *>& expressions)
|
void ConfigCompiler::HandleIncludeZone(const String& relativeBase, const String& tag, const String& path, const String& pattern, const String& package, std::vector<Expression *>& expressions)
|
||||||
|
|
Loading…
Reference in New Issue