[icinga-checkins] icinga.org: icinga2/master: Bugfix: Don' t copy the enable_checks attribute to child services.

git at icinga.org git at icinga.org
Sat Feb 2 20:05:19 CET 2013


Module: icinga2
Branch: master
Commit: f9ea72ddb165bab77618aea62c1268985453b30e
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=f9ea72ddb165bab77618aea62c1268985453b30e

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Sat Feb  2 20:05:18 2013 +0100

Bugfix: Don't copy the enable_checks attribute to child services.

---

 lib/icinga/host.cpp |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp
index 600e302..97c0f80 100644
--- a/lib/icinga/host.cpp
+++ b/lib/icinga/host.cpp
@@ -219,10 +219,6 @@ static void CopyServiceAttributes(const Host::Ptr& host, TDict serviceDesc,
 	if (!hostchecks.IsEmpty())
 		builder->AddExpression("dependencies", OperatorPlus,
 		    Service::ResolveDependencies(host, hostchecks));
-
-	Value enableChecks = serviceDesc->Get("enable_checks");
-	if (!enableChecks.IsEmpty())
-		builder->AddExpression("enable_checks", OperatorSet, enableChecks);
 }
 
 void Host::ObjectCommittedHandler(const ConfigItem::Ptr& item)





More information about the icinga-checkins mailing list