diff options
author | George Kraft <george.kraft@calxeda.com> | 2013-04-12 15:56:34 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2013-04-12 15:56:34 -0500 |
commit | 19069b736587703eaeced9f700b7d38cd0ad78db (patch) | |
tree | b71a372b0a35ab275af99d132ae9fa84a6ead3b1 | |
parent | 8ac8ac3aafd4ec9e5ff1f54e7e7a7be812900875 (diff) | |
download | pyipmi-19069b736587703eaeced9f700b7d38cd0ad78db.tar.gz |
InfoBasicCommand: Raise a proper IpmiError on failure
-rw-r--r-- | pyipmi/commands/info.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyipmi/commands/info.py b/pyipmi/commands/info.py index ca3016c..650e951 100644 --- a/pyipmi/commands/info.py +++ b/pyipmi/commands/info.py @@ -34,7 +34,7 @@ from pyipmi.info import * from pyipmi.tools.responseparser import ResponseParserMixIn from pyipmi import IpmiError -class InfoBasicCommand(Command): +class InfoBasicCommand(Command, ResponseParserMixIn): """ Describes the cxoem info basic IPMI command """ @@ -60,9 +60,9 @@ class InfoBasicCommand(Command): elif line.lstrip().startswith("Timestamp"): result.ecme_timestamp = int(line.split()[1].strip(":()")) elif err.startswith("Error: "): - result.error = err.splitlines()[0][7:] + raise IpmiError(err.splitlines()[0][7:]) else: - result.error = "Unknown Error" + raise IpmiError("Unknown Error") return result |