mirror of
https://opendev.org/x/pyghmi
synced 2026-05-17 03:44:24 +00:00
fru: add chassis type 0: Unspecified
Some pre-production boards has chassis type with value 0, ipmitool is reporting that as "Unspecified" while pyghmi will crash Change-Id: I45304db6e01281bbc53e013648ac6d940855e5d2 ref: https://github.com/ipmitool/ipmitool/blob/1245aaa387dca1cb99408869b2c1b3e2410a1352/lib/ipmi_fru.c#L72
This commit is contained in:
@@ -42,6 +42,7 @@ fruepoch = 820454400 # 1/1/1996, 0:00
|
||||
|
||||
# This is from SMBIOS specification Table 16
|
||||
enclosure_types = {
|
||||
0: 'Unspecified',
|
||||
1: 'Other',
|
||||
2: 'Unknown',
|
||||
3: 'Desktop',
|
||||
|
||||
Reference in New Issue
Block a user