From b67cf1f0cb2c515dcc0c4e1252d8cfb1dc2bbec9 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 27 Nov 2013 15:03:55 +0100 Subject: [PATCH] Fix command name with special chars not being migrated. Fixes #5234 --- tools/migration/icinga2-migrate-config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/migration/icinga2-migrate-config b/tools/migration/icinga2-migrate-config index aac1ae266..e23889005 100755 --- a/tools/migration/icinga2-migrate-config +++ b/tools/migration/icinga2-migrate-config @@ -1609,6 +1609,9 @@ sub convert_checkcommand { # split by ! and take only the check command my ($real_command_name_1x, @command_args_1x) = split /!/, $check_command; + # sanitize object name + $real_command_name_1x = strip_object_name($real_command_name_1x); + # ignore objects with empty check_command attribute #return if (!defined($real_command_name_1x)); -- 2.49.0