mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-10 03:51:54 +00:00
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. |
||
|---|---|---|
| .. | ||
| discovery | ||
| pbs | ||
| proxmox | ||
| tlsutil | ||