]> granicus.if.org Git - icinga2/commitdiff
Fix: Host groups in objects.cache aren't working properly.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 5 Mar 2014 11:07:53 +0000 (12:07 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 5 Mar 2014 11:07:53 +0000 (12:07 +0100)
Fixes #5632

lib/icinga/host.cpp
lib/icinga/host.h

index 345aa3ec4c0c1f17e92b19951e049e4a2d2fd962..59c69f765f1d46916926722a0e2a2b416e65319e 100644 (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();
 }
 
index 904a5edbedfffd96c9df38f06c5a69b2449a6830..9da3adb51ab5dcf1b41e84a57f2a630af6250929 100644 (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);