We are already reporting model & vendor of a given disk, let's also
report the revision of the firmware. That is useful to filter-out some
known broken revisions.
Signed-off-by: Erwan Velu <erwan@redhat.com>
(cherry picked from commit
59720794079bef0ba7f8bc2d9dfc8aaddd210005)
metadata['ro'] = get_file_contents(os.path.join(sysdir, 'ro'))
- for key in ['vendor', 'model', 'sas_address', 'sas_device_handle']:
+ for key in ['vendor', 'model', 'rev', 'sas_address', 'sas_device_handle']:
metadata[key] = get_file_contents(sysdir + "/device/" + key)
for key in ['sectors', 'size']: