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:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user