]> granicus.if.org Git - icinga2/commitdiff
Fixed config file loader.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 11:24:32 +0000 (13:24 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 11:24:32 +0000 (13:24 +0200)
icinga/icingaapplication.cpp

index 6ea3fa75d859adf0c2d3ed76cc74d55558c3dc7f..7f421555d9f4bb9bc6be885c11ca65b881cb4eae 100644 (file)
@@ -54,7 +54,7 @@ int IcingaApplication::Main(const vector<string>& args)
 
        connectionCollection->OnObjectRemoved += bind_weak(&IcingaApplication::DeletedRpcConnectionHandler, shared_from_this());
 
-       ConfigObject::Ptr fileComponentConfig = make_shared<ConfigObject>("component", "configfilecomponent");
+       ConfigObject::Ptr fileComponentConfig = make_shared<ConfigObject>("component", "configfile");
        fileComponentConfig->SetProperty("configFilename", args[1]);
        fileComponentConfig->SetPropertyInteger("replicate", 0);
        GetConfigHive()->AddObject(fileComponentConfig);
@@ -151,4 +151,3 @@ int IcingaApplication::DeletedRpcConnectionHandler(ConfigObjectEventArgs::Ptr ea
 
        return 0;
 }
-