]> granicus.if.org Git - icinga2/commitdiff
Fix validation warnings for components.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 2 Jul 2013 07:58:26 +0000 (09:58 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 2 Jul 2013 07:58:26 +0000 (09:58 +0200)
icinga-app/icinga.cpp

index 18a91afacdddb8611868854e28aa5a0229fceea7..94e7fed28e70394c66258c1a6477fc7bfe6da345 100644 (file)
@@ -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;