File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -651,12 +651,16 @@ def get_drive(drive_link):
651651 if plugin_object .rf .vendor == "HPE" and drive_oem_data .get ("DriveStatus" ) is not None :
652652 status_data = get_status_data (drive_oem_data .get ("DriveStatus" ))
653653
654- # Dell
655- dell_disk_data = grab (drive_oem_data , "DellPhysicalDisk" )
656- if dell_disk_data is not None :
657- if bay is None :
658- bay = dell_disk_data .get ("Slot" )
659- storage_port = dell_disk_data .get ("Connector" )
654+ # Dell
655+ dell_disk_data = grab (drive_oem_data , "DellPhysicalDisk" )
656+ if dell_disk_data is not None :
657+ if bay is None :
658+ bay = dell_disk_data .get ("Slot" )
659+ storage_port = dell_disk_data .get ("Connector" )
660+ # mitigate issue with unsupported Disks for Dell server
661+ # 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 :
663+ predicted_media_life_left_percent = None
660664
661665 physical_location = grab (drive_response , "PhysicalLocation.PartLocation" )
662666 if bay is None and physical_location is not None :
You can’t perform that action at this time.
0 commit comments