Fix: Host groups in objects.cache aren't working properly.

Fixes #5632
This commit is contained in:
Gunnar Beutner 2014-03-05 12:07:53 +01:00
parent 22d53cf3b5
commit 979d6cc97a
2 changed files with 2 additions and 6 deletions

View File

@ -39,9 +39,9 @@ using namespace icinga;
REGISTER_TYPE(Host);
void Host::Start(void)
void Host::OnConfigLoaded(void)
{
DynamicObject::Start();
DynamicObject::OnConfigLoaded();
ASSERT(!OwnsLock());
@ -57,10 +57,7 @@ void Host::Start(void)
hg->AddMember(GetSelf());
}
}
}
void Host::OnConfigLoaded(void)
{
UpdateSlaveServices();
}

View File

@ -102,7 +102,6 @@ public:
virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, String *result) const;
protected:
virtual void Start(void);
virtual void Stop(void);
virtual void OnConfigLoaded(void);