From: Thomas Lamprecht Date: Fri, 9 Apr 2021 11:49:56 +0000 (+0200) Subject: rbd: list images: sort by keys when pushing on result array X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a3cad0b50d20345c65f0f3dd14ac9d6f40ba1d1b;p=pve-storage.git rbd: list images: sort by keys when pushing on result array Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 1566571..8c4ce45 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -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};