Pulse/pkg
rcourtman 3f9748dc1f fix: handle non-numeric wearout values for HDDs and RAID controllers
addresses #449

proxmox returns 'N/A' or empty string for the wearout field on disks that
don't support wear reporting (HDDs, hardware RAID controllers, etc). pulse
was expecting an integer, causing JSON unmarshal errors that prevented ALL
disks from being displayed on affected nodes.

added custom UnmarshalJSON method for the Disk type to gracefully handle:
- numeric values (SSDs with wear reporting)
- string values like 'N/A' (HDDs, RAID controllers) - converts to 0
- null values - converts to 0

this allows nodes with mixed disk types (SSDs, HDDs, RAID) to display all
their disks correctly. wearout value of 0 indicates no wear reporting
available, which is expected for HDDs.
2025-09-30 17:19:15 +00:00
..
discovery feat: add real-time streaming discovery and improve dev/mock mode switching 2025-09-30 13:13:32 +00:00
pbs chore: tidy repo formatting and linting 2025-09-29 20:19:18 +00:00
proxmox fix: handle non-numeric wearout values for HDDs and RAID controllers 2025-09-30 17:19:15 +00:00
tlsutil chore: tidy repo formatting and linting 2025-09-29 20:19:18 +00:00