From: Gunnar Beutner Date: Wed, 5 Mar 2014 11:07:53 +0000 (+0100) Subject: Fix: Host groups in objects.cache aren't working properly. X-Git-Tag: v0.0.8~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=979d6cc97a0a559ce87eca059a3734e6855c27da;p=icinga2 Fix: Host groups in objects.cache aren't working properly. Fixes #5632 --- diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp index 345aa3ec4..59c69f765 100644 --- a/lib/icinga/host.cpp +++ b/lib/icinga/host.cpp @@ -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(); } diff --git a/lib/icinga/host.h b/lib/icinga/host.h index 904a5edbe..9da3adb51 100644 --- a/lib/icinga/host.h +++ b/lib/icinga/host.h @@ -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);