mirror of
https://opendev.org/x/pyghmi
synced 2025-01-28 03:48:09 +00:00
120d5f9a82
In the 'has_megarac' call, it erroneously was assumed that any IpmiException reflected the BMC indicating explicitly that it didn't understand something about the command. However IpmiException is frequently used without a code to indicate some harder error that can't relate to a system return code. Address this by raising the exception if it didn't have a BMC error code initialized. It may be possible to get even more specific, but somewhat limited because we could be getting a 'invalid command' or 'invalid command length' or some 0x80 neighborhood error code, some OEM response. Fortunately things are limited since this code should only ever fire against Lenovo equipment, but still keeping things open ended. Change-Id: Ia84d1474f7d6787d162c6c7ef448f269d826cc2a