]> git.proxmox.com Git - pve-storage.git/commitdiff
cephcfg sort keys in write_ceph_config
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Jan 2020 18:59:08 +0000 (19:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Jan 2020 18:59:08 +0000 (19:59 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CephConfig.pm

index 4a303c27111819ad5e1948508e0833187e3f3519..685bdaee829c6298fe5a1444f39947b4840267e2 100644 (file)
@@ -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}}) {