Config Conversion: Fix import removing inline comments after ';' and '#'.

fixes #4499
This commit is contained in:
Michael Friedrich 2013-09-12 18:40:16 +02:00
parent c9497367d2
commit f91c64098b
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ sub parse_icinga1_object_cfg {
elsif ($in_define == 1) {
# first, remove the annoying inline comments after ';'
$line =~ s/\s*;(.*)$//;
$line =~ s/\s*[;\#](.*)$//;
$inline_comment = $1;
# then split it and save it by type->cnt->attr->val