From 4fdab9e2ac25c4e6a6830914782922141cabe92d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 13 Sep 2013 12:36:49 +0200 Subject: [PATCH] config: Fix looking up host custom attributes. --- tools/configconvert/Icinga2/Convert.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/configconvert/Icinga2/Convert.pm b/tools/configconvert/Icinga2/Convert.pm index 3fab989be..3e8a14be5 100644 --- a/tools/configconvert/Icinga2/Convert.pm +++ b/tools/configconvert/Icinga2/Convert.pm @@ -835,7 +835,7 @@ sub resolve_macro_attribute { $obj_host = obj_get_host_obj_by_host_name($cfg_obj, $host_name); } - $macro_value = obj_1x_get_host_attr($cfg_obj, $obj, $host_name, $attr_name); + $macro_value = obj_1x_get_host_attr($cfg_obj, $obj_host, $host_name, $attr_name); Icinga2::Utils::debug("MACRO RESOLVER: found $attr_name with value '$macro_value' on " . Dumper($obj)); return $macro_value;