diff --git a/lib/icinga/service-apply.cpp b/lib/icinga/service-apply.cpp index 89de8d767..760c94617 100644 --- a/lib/icinga/service-apply.cpp +++ b/lib/icinga/service-apply.cpp @@ -121,9 +121,9 @@ bool Service::EvaluateApplyRule(const Host::Ptr& host, const ApplyRule& rule) void Service::EvaluateApplyRules(const Host::Ptr& host) { - for (ApplyRule& rule : ApplyRule::GetRules("Service")) { - CONTEXT("Evaluating 'apply' rules for host '" + host->GetName() + "'"); + CONTEXT("Evaluating 'apply' rules for host '" + host->GetName() + "'"); + for (ApplyRule& rule : ApplyRule::GetRules("Service")) { if (EvaluateApplyRule(host, rule)) rule.AddMatch(); }