Skip to content

Keep existing device type#803

Open
thomashilzendegen wants to merge 1 commit intoAnalogJ:masterfrom
thomashilzendegen:fix/device-type-override
Open

Keep existing device type#803
thomashilzendegen wants to merge 1 commit intoAnalogJ:masterfrom
thomashilzendegen:fix/device-type-override

Conversation

@thomashilzendegen
Copy link
Copy Markdown

This should fix #608 as it was overriding a configured device type from the collector.yaml with the (in my case wrong) results from the smartctl --info command (device.type JSON element).

@AnalogJ
Copy link
Copy Markdown
Owner

AnalogJ commented Oct 19, 2025

The device type in the collector should always take precedence over smartctl info results.
IIRC this type needs to be defined, so we can't remove this

@thomashilzendegen
Copy link
Copy Markdown
Author

Exactly. That's the reason why I removed that line, as it overwrote the collector's device type with the smartctl info results.

Starosdev added a commit to Starosdev/scrutiny that referenced this pull request Nov 30, 2025
Prevents device type from being overwritten during SMART info collection. This preserves user-configured device types for drives that require specific type settings (e.g., USB bridges, RAID controllers). Origin: AnalogJ#803 Original author: @thomashilzendegen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants