From e38418266f335605f536f3dcdba951e6743c5724 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 29 Jan 2020 19:59:08 +0100 Subject: [PATCH] cephcfg sort keys in write_ceph_config Signed-off-by: Thomas Lamprecht --- PVE/CephConfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/CephConfig.pm b/PVE/CephConfig.pm index 4a303c2..685bdae 100644 --- a/PVE/CephConfig.pm +++ b/PVE/CephConfig.pm @@ -65,7 +65,7 @@ sub write_ceph_config { my $cond_write_sec = sub { my $re = shift; - foreach my $section (keys %$cfg) { + foreach my $section (sort keys %$cfg) { next if $section !~ m/^$re$/; $out .= "[$section]\n"; foreach my $key (sort keys %{$cfg->{$section}}) {