Open sHorst opened 2 weeks ago
Hi,
@tasleson I see you implemented this change in commit https://github.com/intel/ledmon/commit/869181077ce692ff12f82775766eac5e4410091a could you look at this issue? this change may also be related to the observed behavior in issue https://github.com/intel/ledmon/issues/246
Thanks, Blazej
@bkucman I'll take a look at this
https://github.com/intel/ledmon/blob/bdce02a4c5211c9059c49f253b782df62d00317e/src/lib/enclosure.c#L144C2-L152C3
In the referenced Lines in lib/enclosure.c the code assumes, that Indexes start at 0 and end at slots_count, which is not allways the case. The other code can handle the miss, but this code produces errors, for slot 0 and will not update the last device.