]> git.proxmox.com Git - pve-cluster.git/commitdiff
datacenter.cfg: code style fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Nov 2021 13:30:02 +0000 (14:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Nov 2021 13:30:02 +0000 (14:30 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/DataCenterConfig.pm

index 89c7ad45a104a46cf6eb73484fc8a8d5ccfb2883..6c0fa5b2ff5a7abf317e64231843ec59c1b3c96c 100644 (file)
@@ -235,8 +235,7 @@ sub parse_datacenter_config {
 
     # description may be comment or key-value pair (or both)
     my $comment = '';
-    my @lines = split(/\n/, $raw);
-    foreach my $line (@lines) {
+    for my $line (split(/\n/, $raw)) {
        if ($line =~ /^\#(.*)\s*$/) {
            $comment .= PVE::Tools::decode_text($1) . "\n";
        }
@@ -247,7 +246,6 @@ sub parse_datacenter_config {
 
     $res->{description} = $comment;
 
-
     if (my $migration = $res->{migration}) {
        $res->{migration} = PVE::JSONSchema::parse_property_string($migration_format, $migration);
     }