2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-13 19:27:48 +00:00

Handle missing properties

Missing properties happen on older firmware, return
blank info.

Change-Id: I1972ab95a15ebe86180462158d3ea78a2c3b4a1b
This commit is contained in:
Jarrod Johnson 2018-05-15 10:27:44 -04:00
parent f8c92bd9de
commit c25046b23f

View File

@ -46,6 +46,8 @@ def fixup_uuid(uuidprop):
def fixup_str(propstr):
if propstr is None:
return ''
return ''.join([chr(int(c, 16)) for c in propstr.split()]).strip(
' \xff\x00')