mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fix validation warnings for components.
This commit is contained in:
parent
184f503c2a
commit
4637bc1ca6
@ -52,15 +52,15 @@ static bool LoadConfigFiles(bool validateOnly)
|
||||
|
||||
ConfigCompilerContext::SetContext(&context);
|
||||
|
||||
BOOST_FOREACH(const String& configPath, g_AppParams["config"].as<std::vector<String> >()) {
|
||||
ConfigCompiler::CompileFile(configPath);
|
||||
}
|
||||
|
||||
String name, fragment;
|
||||
BOOST_FOREACH(boost::tie(name, fragment), ConfigFragmentRegistry::GetInstance()->GetItems()) {
|
||||
ConfigCompiler::CompileText(name, fragment);
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const String& configPath, g_AppParams["config"].as<std::vector<String> >()) {
|
||||
ConfigCompiler::CompileFile(configPath);
|
||||
}
|
||||
|
||||
ConfigCompilerContext::SetContext(NULL);
|
||||
|
||||
bool hasError = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user