cephcfg sort keys in write_ceph_config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -65,7 +65,7 @@ sub write_ceph_config {
|
|||||||
my $cond_write_sec = sub {
|
my $cond_write_sec = sub {
|
||||||
my $re = shift;
|
my $re = shift;
|
||||||
|
|
||||||
foreach my $section (keys %$cfg) {
|
foreach my $section (sort keys %$cfg) {
|
||||||
next if $section !~ m/^$re$/;
|
next if $section !~ m/^$re$/;
|
||||||
$out .= "[$section]\n";
|
$out .= "[$section]\n";
|
||||||
foreach my $key (sort keys %{$cfg->{$section}}) {
|
foreach my $key (sort keys %{$cfg->{$section}}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user