From 979d6cc97a0a559ce87eca059a3734e6855c27da Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 5 Mar 2014 12:07:53 +0100 Subject: [PATCH] Fix: Host groups in objects.cache aren't working properly. Fixes #5632 --- lib/icinga/host.cpp | 7 ++----- lib/icinga/host.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) 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); -- 2.40.0