diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index bd311510..2d680264 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -950,7 +950,8 @@ class XCCClient(IMMClient): {'Action': 'Bios.ResetBios'}, headers={ 'Authorization': 'Basic %s' % base64.b64encode( - self.username + ':' + self.password), + (self.username + ':' + self.password).encode('utf8') + ).decode('utf8'), 'Content-Type': 'application/json' } )