Closed hinxx closed 2 years ago
When hitting this line of code:
https://github.com/kontron/python-ipmi/blob/2961fca93bdd6576f99ddffdc793720070795d09/pyipmi/ipmitool.py#L208
I get the error TypeError: unsupported format string passed to bytes.__format__.
TypeError: unsupported format string passed to bytes.__format__
Changing the line to s.device_id_string.decode('utf-8'), makes the error go away for me.
s.device_id_string.decode('utf-8'),
Just noticed this is a duplicate of #90 .
could you add a unittest that reproduces the issue and make sure that the proposed change will fix it?
@hinxx could you provide a raw SDR dump of the failed record?
When hitting this line of code:
https://github.com/kontron/python-ipmi/blob/2961fca93bdd6576f99ddffdc793720070795d09/pyipmi/ipmitool.py#L208
I get the error
TypeError: unsupported format string passed to bytes.__format__
.Changing the line to
s.device_id_string.decode('utf-8'),
makes the error go away for me.