5
0
mirror of git://git.proxmox.com/git/pve-access-control.git synced 2025-01-18 06:03:47 +03:00

fix #5335: sort ACL entries in user.cfg

Stable sorting in user.cfg config file allows tracking changes by
checking into git or when using automation like ansible.

Signed-off-by: Daniel Krambrock <krambrock@hrz.uni-marburg.de>
Tested-by: Folge Gleumes <f.gleumes@proxmox.com>
This commit is contained in:
Daniel Krambrock via pve-devel 2024-04-11 10:09:09 +02:00 committed by Fabian Grünbichler
parent 787e4c06e3
commit cca4c0009e

View File

@ -951,7 +951,7 @@ sub iterate_acl_tree {
my $children = $node->{children};
foreach my $child (keys %$children) {
foreach my $child (sort keys %$children) {
iterate_acl_tree("$path/$child", $children->{$child}, $code);
}
}