[pve-devel] [PATCH v5 pve-storage 06/11] cephconfig: align written key-value pairs by tab

Max Carrara m.carrara at proxmox.com
Tue Apr 2 16:55:18 CEST 2024


instead of tab + space.

Signed-off-by: Max Carrara <m.carrara at proxmox.com>
---
Changes v2 --> v3:
  * new

Changes v3 --> v4:
  * rebased due to previous changes

Changes v4 --> v5: (originally patch 12)
  * rebase onto changes of patch 01
  * align by tab only instead of removing all leading whitespace
    - as it turns out, continued lines are rather rare anyways and
      aligning the keys by tab makes the configuration more readable
  * reword commit message and remove previous explanation

 src/PVE/CephConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/CephConfig.pm b/src/PVE/CephConfig.pm
index 1b6e86c..845b7d2 100644
--- a/src/PVE/CephConfig.pm
+++ b/src/PVE/CephConfig.pm
@@ -72,7 +72,7 @@ sub write_ceph_config {
 
 	    $out .= "[$section]\n";
 	    for my $key (sort keys $cfg->{$section}->%*) {
-		$out .= "\t $key = $cfg->{$section}->{$key}\n";
+		$out .= "\t$key = $cfg->{$section}->{$key}\n";
 	    }
 	    $out .= "\n";
 
-- 
2.39.2





More information about the pve-devel mailing list