From c25a7d580bda70f5f3f5e832161c38351f0e4687 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 27 Nov 2013 13:25:00 +0100 Subject: [PATCH] Migration: Fix timeperiod object name stripping. Fixes #5230 --- tools/migration/icinga2-migrate-config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/migration/icinga2-migrate-config b/tools/migration/icinga2-migrate-config index 4bcc2d4a9..aac1ae266 100755 --- a/tools/migration/icinga2-migrate-config +++ b/tools/migration/icinga2-migrate-config @@ -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);