mirror of https://github.com/Icinga/icinga2.git
Config Conversion: Fix import removing inline comments after ';' and '#'.
fixes #4499
This commit is contained in:
parent
c9497367d2
commit
f91c64098b
|
@ -168,7 +168,7 @@ sub parse_icinga1_object_cfg {
|
||||||
elsif ($in_define == 1) {
|
elsif ($in_define == 1) {
|
||||||
|
|
||||||
# first, remove the annoying inline comments after ';'
|
# first, remove the annoying inline comments after ';'
|
||||||
$line =~ s/\s*;(.*)$//;
|
$line =~ s/\s*[;\#](.*)$//;
|
||||||
$inline_comment = $1;
|
$inline_comment = $1;
|
||||||
|
|
||||||
# then split it and save it by type->cnt->attr->val
|
# then split it and save it by type->cnt->attr->val
|
||||||
|
|
Loading…
Reference in New Issue