Using local BMC fails to get sensor data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyghmi |
New
|
Undecided
|
Unassigned |
Bug Description
Pyghmi version: 1.3.0
Python version: 2.7.15
Calling get_sensor_data and iterating over the response on a bmc=None command session yields:
---
sensor_data = ipmi.get_
for x in sensor_data:
print x
---
pyghmi/
rsp['data'] = buffer(rsp['data'])
TypeError: buffer object expected
The rsp['data'] object is a list when using the local bmc interface instead of OOB.
If you cast this to bytearray before calling buffer, it works as expected.
rsp['data'] = buffer(
Also seems to work on OOB session as well, but not sure how you'd want to fix this and other differences that might exist as well.