From e0f34700ec7b9f39f26fcd315a77f567750b9ebc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 31 Jan 2014 16:41:31 -0500 Subject: [PATCH] Reasonably relay IPMI errors to console handlers Previous changes resulted in construction of a new dict nesting the dict of interest. Correct this by passing through dict rather than embedding it within another dict. Change-Id: I77969097f530c866cb00d07844393676ac254907 --- pyghmi/ipmi/console.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyghmi/ipmi/console.py b/pyghmi/ipmi/console.py index 3fe4e3da..ea942cc6 100644 --- a/pyghmi/ipmi/console.py +++ b/pyghmi/ipmi/console.py @@ -192,7 +192,10 @@ class Console(object): self._print_data({'info': info}) def _print_error(self, error): - self._print_data({'error': error}) + if type(error) == dict: + self._print_data(error) + else: + self._print_data({'error': error}) def _print_data(self, data): """Convey received data back to caller in the format of their choice.