mirror of
https://opendev.org/x/pyghmi
synced 2025-01-16 04:38:19 +00:00
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
This commit is contained in:
parent
46228d23a1
commit
e0f34700ec
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user