fix logging and add media type for physical disk

This commit is contained in:
Solvik Blum 2019-08-21 17:36:30 +02:00
parent 4c3864b94e
commit afdf26c920
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
3 changed files with 20 additions and 10 deletions

View file

@ -32,6 +32,7 @@ class StorcliController(RaidController):
enclosure = physical_drive.get('EID:Slt').split(':')[0]
slot = physical_drive.get('EID:Slt').split(':')[1]
size = physical_drive.get('Size').strip()
media_type = physical_drive.get('Med').strip()
drive_identifier = 'Drive /c{}/e{}/s{}'.format(
str(self.controller_index), str(enclosure), str(slot)
)
@ -41,6 +42,7 @@ class StorcliController(RaidController):
'Model': drive_attr.get('Model Number', '').strip(),
'SN': drive_attr.get('SN', '').strip(),
'Size': size,
'Type': media_type,
})
return ret