5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2024-12-23 17:34:34 +03:00

cephcfg sort keys in write_ceph_config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-29 19:59:08 +01:00
parent 9a80a3eae0
commit e38418266f

View 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}}) {