Migration: Fix timeperiod object name stripping.

Fixes #5230
This commit is contained in:
Michael Friedrich 2013-11-27 13:25:00 +01:00
parent 640136fbdb
commit c25a7d580b

View File

@ -433,7 +433,8 @@ sub parse_icinga1_object_cfg {
$attr =~ /groups/ || $attr =~ /groups/ ||
$attr =~ /members/ || $attr =~ /members/ ||
$attr =~ /use/ || $attr =~ /use/ ||
$attr =~ /parents/ $attr =~ /parents/ ||
$attr =~ /_period/
) { ) {
$val = strip_object_name($val); $val = strip_object_name($val);
} }
@ -479,7 +480,7 @@ sub parse_icinga1_objects_cache {
my $cfg_obj_cache = {}; my $cfg_obj_cache = {};
print "Processing file '$cfg_file'...\n"; print "Processing file '$object_cache_file'...\n";
$cfg_obj_cache = parse_icinga1_object_cfg($cfg_obj_cache, $object_cache_file); $cfg_obj_cache = parse_icinga1_object_cfg($cfg_obj_cache, $object_cache_file);
#say Dumper($cfg_obj_cache); #say Dumper($cfg_obj_cache);