mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
configconvert: treat 'null' (disable inheritance) as '0' instead
refs #2743
This commit is contained in:
parent
18e3bdc581
commit
2985eee66d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user