]> granicus.if.org Git - icinga2/commitdiff
config: Fix looking up host custom attributes.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Sep 2013 10:36:49 +0000 (12:36 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Sep 2013 10:36:49 +0000 (12:36 +0200)
tools/configconvert/Icinga2/Convert.pm

index 3fab989be7cf8c85b4ab019e5a194b1f7c7d1e7f..3e8a14be524eb06dcb7daef4be02821bc8ea28ea 100644 (file)
@@ -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;