[icinga-checkins] icinga.org: icinga2/master: Fixed incorrect variable name.

git at icinga.org git at icinga.org
Wed Feb 6 11:10:08 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Feb  6 11:09:52 2013 +0100

Fixed incorrect variable name.

---

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

diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp
index a106398..c338c3b 100644
--- a/lib/icinga/host.cpp
+++ b/lib/icinga/host.cpp
@@ -217,7 +217,7 @@ static void CopyServiceAttributes(const Host::Ptr& host, TDict serviceDesc,
 		builder->AddExpression("dependencies", OperatorPlus,
 		    Service::ResolveDependencies(host, dependencies));
 
-	Value hostchecks = serviceDesc->Get("hostchecks");
+	Value hostchecks = host->Get("hostchecks");
 	if (!hostchecks.IsEmpty())
 		builder->AddExpression("dependencies", OperatorPlus,
 		    Service::ResolveDependencies(host, hostchecks));





More information about the icinga-checkins mailing list