]> granicus.if.org Git - icinga2/commitdiff
Fix bug which causes timeperiods not to be updated.
authorGunnar Beutner <gunnar@beutner.name>
Thu, 12 Sep 2013 05:13:36 +0000 (07:13 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 12 Sep 2013 05:13:36 +0000 (07:13 +0200)
lib/icinga/timeperiod.cpp

index 25e803dee71de16d58563508edbf7066ef884f88..f5d73f5acfb10b9676d9757aca3a9cc508ba061c 100644 (file)
@@ -264,10 +264,6 @@ void TimePeriod::UpdateTimerHandler(void)
        double now = Utility::GetTime();
 
        BOOST_FOREACH(const TimePeriod::Ptr& tp, DynamicType::GetObjects<TimePeriod>()) {
-               /* Only update time periods that have been defined on this node. */
-               if (!ConfigItem::GetObject("TimePeriod", tp->GetName()))
-                       continue;
-
                double valid_end;
 
                {