From 580b5e358e8d78618f099c16eb0fbf128acb4162 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 6 Feb 2013 11:09:52 +0100 Subject: [PATCH] Fixed incorrect variable name. --- lib/icinga/host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp index a1063988a..c338c3b55 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));