configconvert: treat 'null' (disable inheritance) as '0' instead

refs #2743
This commit is contained in:
Michael Friedrich 2013-06-26 14:29:31 +02:00
parent 18e3bdc581
commit 2985eee66d
1 changed files with 4 additions and 0 deletions

View 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;