Fix: Load the 'replication' component.

This commit is contained in:
Gunnar Beutner 2012-09-17 13:32:59 +02:00
parent d7b55f4926
commit d4fc6fc672
1 changed files with 7 additions and 7 deletions

View File

@ -34,13 +34,13 @@ const String IcingaApplication::DefaultStatePath = "icinga.state";
IcingaApplication::IcingaApplication(const Dictionary::Ptr& serializedUpdate)
: Application(serializedUpdate)
{
/* load cibsync config component */
ConfigItemBuilder::Ptr cibsyncComponentConfig = boost::make_shared<ConfigItemBuilder>();
cibsyncComponentConfig->SetType("Component");
cibsyncComponentConfig->SetName("cibsync");
cibsyncComponentConfig->SetLocal(true);
cibsyncComponentConfig->Compile()->Commit();
cibsyncComponentConfig.reset();
/* load replication config component */
ConfigItemBuilder::Ptr replicationComponentConfig = boost::make_shared<ConfigItemBuilder>();
replicationComponentConfig->SetType("Component");
replicationComponentConfig->SetName("replication");
replicationComponentConfig->SetLocal(true);
replicationComponentConfig->Compile()->Commit();
replicationComponentConfig.reset();
/* load convenience config component */
ConfigItemBuilder::Ptr convenienceComponentConfig = boost::make_shared<ConfigItemBuilder>();