rbd: list images: sort by keys when pushing on result array

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2021-04-09 13:49:56 +02:00
parent 6d0d0a977d
commit a3cad0b50d

View File

@ -545,7 +545,7 @@ sub list_images {
my $res = [];
if (my $dat = $cache->{rbd}->{$pool}) {
foreach my $image (keys %$dat) {
for my $image (sort keys %$dat) {
my $info = $dat->{$image};