metal-toolbox / alloy

Server inventory, bios data collector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hardware inventory to continue on BIOS configuration collection error

joelrebel opened this issue · comments

The Inventory data collection should not be aborted on a BIOS data collection failure,

The fix for this is pretty simple

This method logs a warning instead of an error,

biosConfig, err := i.deviceManager.GetBIOSConfiguration(ctx)

And here the map length is checked before attempting to publish BIOS data,
https://github.com/metal-toolbox/alloy/blob/main/internal/publish/serverservice.go#LL286C73-L286C73

Added PR #93 with a fix for this