From 8f7fb9699d4a802a70ace376af32a09bfaaa1efe Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 13 Apr 2012 13:24:32 +0200 Subject: [PATCH] Fixed config file loader. --- icinga/icingaapplication.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/icinga/icingaapplication.cpp b/icinga/icingaapplication.cpp index 6ea3fa75d..7f421555d 100644 --- a/icinga/icingaapplication.cpp +++ b/icinga/icingaapplication.cpp @@ -54,7 +54,7 @@ int IcingaApplication::Main(const vector& args) connectionCollection->OnObjectRemoved += bind_weak(&IcingaApplication::DeletedRpcConnectionHandler, shared_from_this()); - ConfigObject::Ptr fileComponentConfig = make_shared("component", "configfilecomponent"); + ConfigObject::Ptr fileComponentConfig = make_shared("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; } -