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
1 changed files with 3 additions and 2 deletions

View File

@ -433,7 +433,8 @@ sub parse_icinga1_object_cfg {
$attr =~ /groups/ ||
$attr =~ /members/ ||
$attr =~ /use/ ||
$attr =~ /parents/
$attr =~ /parents/ ||
$attr =~ /_period/
) {
$val = strip_object_name($val);
}
@ -479,7 +480,7 @@ sub parse_icinga1_objects_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);
#say Dumper($cfg_obj_cache);