diff --git a/PVE/CephConfig.pm b/PVE/CephConfig.pm index ab78328..3ff49ee 100644 --- a/PVE/CephConfig.pm +++ b/PVE/CephConfig.pm @@ -21,8 +21,9 @@ sub parse_ceph_config { my $section; foreach my $line (@lines) { - $line =~ s/[;#].*$//; + $line =~ s/#.*$//; $line =~ s/^\s+//; + $line =~ s/^;.*$//; $line =~ s/\s+$//; next if !$line;