Revert "Avoid crash during SMART self-test"

This reverts commit cc8c0992f6.
This commit is contained in:
2Shirt 2020-01-30 13:25:46 -07:00
parent c8f95d866a
commit dc6dcfb845
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -368,13 +368,9 @@ class Disk(BaseObj):
try:
details = self.smartctl['ata_smart_data']['self_test']
except (KeyError, TypeError):
# Assuming disk lacks SMART support, ignore and return nearly empty dict.
# Assuming disk lacks SMART support, ignore and return empty dict.
pass
# Ensure status is present even if empty
if 'status' not in details:
details['status'] = {}
# Done
return details