2
0
mirror of https://opendev.org/x/pyghmi synced 2025-02-05 13:32:48 +00:00

Fix XCC use of Redfish in OEM and python3

base64 demands bytes input and puts bytes out, and
we need str in and str out.

Change-Id: I68ab89d63a4d9720e403154a0153cebfc492b4ad
This commit is contained in:
Jarrod Johnson 2021-01-15 08:45:49 -05:00
parent 7a2a016233
commit d3de6116f8

View File

@ -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'
}
)