kontron / python-ipmi

A pure python IPMI library
GNU Lesser General Public License v2.1
187 stars 74 forks source link

unsupported format string #119

Closed hinxx closed 2 years ago

hinxx commented 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__.

Changing the line to s.device_id_string.decode('utf-8'), makes the error go away for me.

hinxx commented 2 years ago

Just noticed this is a duplicate of #90 .

hthiery commented 2 years ago

could you add a unittest that reproduces the issue and make sure that the proposed change will fix it?

hthiery commented 2 years ago

@hinxx could you provide a raw SDR dump of the failed record?