2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-07-31 18:19:40 +00:00

Merge pull request #7635 from VersatusHPC/harvest/rinv-deterministic-sort

fix(rinv): sort FRU output deterministically
This commit is contained in:
Daniel Hilst
2026-07-27 08:26:08 -03:00
committed by GitHub
+1 -1
View File
@@ -3203,7 +3203,7 @@ sub fru_initted {
my @types = @{ $sessdata->{invtypes} };
my $format = "%-20s %s";
foreach $key (sort { $a <=> $b } keys %{ $sessdata->{fru_hash} }) {
foreach $key (sort { $a <=> $b or $a cmp $b } keys %{ $sessdata->{fru_hash} }) {
my $fru = $sessdata->{fru_hash}->{$key};
my $type;
foreach $type (split /,/, $fru->rec_type) {