]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/PVE/DataCenterConfig.pm
parse datacenter config: remove "\s*" from comment regex
[pve-cluster.git] / data / PVE / DataCenterConfig.pm
index e27e7ac7af8d71943feabea479008829dfc2eebb..782abea38af0867e9924602dfc8eacd7705b2de3 100644 (file)
@@ -264,7 +264,7 @@ sub parse_datacenter_config {
     # description may be comment or key-value pair (or both)
     my $comment = '';
     for my $line (split(/\n/, $raw)) {
-       if ($line =~ /^\#(.*)\s*$/) {
+       if ($line =~ /^\#(.*)$/) {
            $comment .= PVE::Tools::decode_text($1) . "\n";
        }
     }