]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
merge get_smart_data/health
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 5 Oct 2016 08:57:09 +0000 (10:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 6 Oct 2016 05:48:57 +0000 (07:48 +0200)
commitdd902da78e16929cd50791a2f25b03cfe2d631a3
tree13dd1acd100f606510defebf30d5d1422136e3ba
parentdaa623edc3a8c9e148964e657932fb19eb2995fc
merge get_smart_data/health

instead of parsing the output of smart in two places,
give get_smart_data a flag if we only want health

this fixes a bug (not on the bugtracker), where
an ssd with disabled smart had an empty string as health
in the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Disks.pm
PVE/Diskmanage.pm