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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user