From: Gunnar Beutner Date: Fri, 13 Sep 2013 10:36:49 +0000 (+0200) Subject: config: Fix looking up host custom attributes. X-Git-Tag: v0.0.3~516 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fdab9e2ac25c4e6a6830914782922141cabe92d;p=icinga2 config: Fix looking up host custom attributes. --- 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;