config: Fix looking up host custom attributes.

This commit is contained in:
Gunnar Beutner 2013-09-13 12:36:49 +02:00
parent 2b97884201
commit 4fdab9e2ac
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ sub resolve_macro_attribute {
$obj_host = obj_get_host_obj_by_host_name($cfg_obj, $host_name); $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)); Icinga2::Utils::debug("MACRO RESOLVER: found $attr_name with value '$macro_value' on " . Dumper($obj));
return $macro_value; return $macro_value;