From d3b67cf2ed437f1b3703175a7a58323911cd4204 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sat, 5 Apr 2014 19:08:46 +0200 Subject: [PATCH] Fix host custom attribute 'address' as runtime macro. Refs #5855 --- 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 c9ca6d08e..166593576 100644 --- a/lib/icinga/host.cpp +++ b/lib/icinga/host.cpp @@ -267,7 +267,7 @@ bool Host::ResolveMacro(const String& macro, const CheckResult::Ptr&, String *re String value; if (vars && vars->Contains(macro)) - value = vars->Get(key); + value = vars->Get(macro); if (value.IsEmpty()) { *result = GetName();