; is the beginning of a comment, but in some configuration settings
it is also valid syntax, e.g. for mon_host it is a valid
seperator for hosts (sigh ...)
only remove lines when it starts with a ';'
since we remove all comments anyway any time we write the ceph conf
it should not really matter for our users
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
my $section;
foreach my $line (@lines) {
- $line =~ s/[;#].*$//;
+ $line =~ s/#.*$//;
$line =~ s/^\s+//;
+ $line =~ s/^;.*$//;
$line =~ s/\s+$//;
next if !$line;