Skip to content

Commit 17cc373

Browse files
committed
fix: Sort Nokia devices components to make network inventory reliable other time
1 parent 5de08c5 commit 17cc373

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/GLPI/Agent/SNMP/MibSupport/Nokia.pm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ sub getComponents {
221221
push @components, $component;
222222
}
223223

224-
return \@components;
224+
return [
225+
sort {
226+
$a->{CONTAINEDININDEX} <=> $b->{CONTAINEDININDEX} && $a->{INDEX} <=> $b->{INDEX}
227+
} @components
228+
];
225229
}
226230

227231
1;

0 commit comments

Comments
 (0)