From: Gunnar Beutner Date: Tue, 2 Jul 2013 07:58:26 +0000 (+0200) Subject: Fix validation warnings for components. X-Git-Tag: v0.0.2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4637bc1ca6e9d8a74724b44b68e4bfcd8d49bc2c;p=icinga2 Fix validation warnings for components. --- diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index 18a91afac..94e7fed28 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -52,15 +52,15 @@ static bool LoadConfigFiles(bool validateOnly) ConfigCompilerContext::SetContext(&context); + BOOST_FOREACH(const String& configPath, g_AppParams["config"].as >()) { + 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 >()) { - ConfigCompiler::CompileFile(configPath); - } - ConfigCompilerContext::SetContext(NULL); bool hasError = false;