Skip to content

Commit 97f7ea5

Browse files
committed
adds another condition to mitigate #165
1 parent f77af8a commit 97f7ea5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cr_module/storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,9 @@ def get_drive(drive_link):
659659
storage_port = dell_disk_data.get("Connector")
660660
# mitigate issue with unsupported Disks for Dell server
661661
# https://github.com/bb-Ricardo/check_redfish/issues/165
662-
if predicted_media_life_left_percent == 0 and dell_disk_data.get("AvailableSparePercent") is None:
662+
if predicted_media_life_left_percent == 0 and (
663+
dell_disk_data.get("AvailableSparePercent") is None or
664+
dell_disk_data.get("Certified") == "No"):
663665
predicted_media_life_left_percent = None
664666

665667
physical_location = grab(drive_response, "PhysicalLocation.PartLocation")

0 commit comments

Comments
 (0)