Comment 1 for bug 1868942

Revision history for this message
Vlad (badfiles) wrote :

--- pyghmi/pyghmi/ipmi/oem/lenovo/energy.py 2020-03-25 12:28:56.840767989 +0300
+++ pyghmi/pyghmi/ipmi/oem/lenovo/energy.py 2020-03-25 12:29:39.569242159 +0300
@@ -30,9 +30,9 @@
                                        data=self.iana + b'\x00\x00\x01')
         except pygexc.IpmiException as ie:
             if ie.ipmicode == 193: # try again with IBM IANA
- self.iana = bytearray('\x4d\x4f\x00')
+ self.iana = bytearray(b'\x4d\x4f\x00')
                 rsp = ipmicmd.xraw_command(netfn=0x2e, command=0x82,
- data=self.iana + '\x00\x00\x01')
+ data=self.iana + b'\x00\x00\x01')
             else:
                 raise
         if rsp['data'][4:6] not in (b'\x02\x01', b'\x02\x06', b'\x02\x09'):