chore: fetch more data as custom_fields for hp inventory

This commit is contained in:
Cyril Levis 2022-12-13 17:27:35 +01:00
parent cedb6818a3
commit 49b269efa6
No known key found for this signature in database
GPG key ID: 6DB88737C11F5A48

View file

@ -172,7 +172,12 @@ class HPRaidController(RaidController):
'Type': 'SSD' if attrs.get('Interface Type') == 'Solid State SATA'
else 'HDD',
'_src': self.__class__.__name__,
'custom_fields': {'pd_identifier': name}
'custom_fields': {
'pd_identifier': name,
'mount_point': attrs['Mount Points'],
'vd_device': attrs['Disk Name'],
'vd_size': attrs['Size'],
}
}
return ret