2
0
mirror of https://opendev.org/x/pyghmi synced 2026-08-28 09:36:43 +00:00

Add 0x10 and 0x03 to ignore

These bytes have also appeared erroneously in FRU
data, treat them as equivalent to null.

Change-Id: I9d19239f2dc13fc47321c8a35f25c58ccbebec3d
This commit is contained in:
Jarrod Johnson
2019-03-01 13:04:17 -05:00
parent c1a20db6d8
commit db1a87f7b1
+1 -1
View File
@@ -227,7 +227,7 @@ class FRU(object):
# to fru info, particularly the last values
# Additionally 0xfe has been observed, which should be a thorn, but
# again assuming termination of string is more likely than thorn.
retinfo = retinfo.rstrip('\xfe\xff\x00 ')
retinfo = retinfo.rstrip('\xfe\xff\x10\x03\x00 ')
if lang in (0, 25):
try:
retinfo = retinfo.decode('iso-8859-1')