]> granicus.if.org Git - icinga2/commitdiff
configconvert: treat 'null' (disable inheritance) as '0' instead
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 26 Jun 2013 12:29:31 +0000 (14:29 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 26 Jun 2013 12:29:31 +0000 (14:29 +0200)
refs #2743

tools/configconvert/Icinga2/ImportIcinga1Cfg.pm

index cab10033d7558226efba899bb751eca99aa102a4..d94a8a09700796fc091b9d7dd00f3b0b19c34a2a 100644 (file)
@@ -200,6 +200,10 @@ sub parse_icinga1_object_cfg {
                 ) {
                 $val = Icinga2::Utils::strip_object_name($val);
             }
+            # treat 'null' (disable) as '0'
+            if ($val eq "null") {
+                $val = 0;
+            }
 
             $cfg_obj->{$type}->{$cfg_obj->{'type_cnt'}->{$type}}->{$attr} = $val;