2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-28 03:48:09 +00:00
Jarrod Johnson 120d5f9a82 Passthrough errors when not sent by BMC in MegaRAC
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
2016-04-25 09:28:41 -04:00
..
2016-04-23 10:12:23 -04:00
2013-08-07 13:51:05 -04:00