reverse test order to avoid undefined hash key error

This commit is contained in:
Oliver Gorwits
2022-03-01 22:35:19 +00:00
parent 1e39753ece
commit 4f6efee263

View File

@@ -100,7 +100,7 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
}
foreach my $m (@modules){
unless ($seen_idx{$m->{parent}} || !$m->{parent}){
unless (!$m->{parent} || $seen_idx{$m->{parent}}){
# Some combined devices like Nexus with FEX or ASR with Satellites can return invalid
# EntityMIB trees. This workaround relocates entitites with invalid parents to the root
# of the tree, so they are at least visible in the Modules tab (see #710)