2
0
mirror of https://opendev.org/x/pyghmi synced 2025-09-19 00:08:10 +00:00

Correct console behavior when open session fails

When open session fails, console continued trying to use the session
even though it is a lost cause.  Correct this by bailing out in time.

Change-Id: Icc09514201c948edf21cf7e9e36f0cfe0520a2c9
This commit is contained in:
Jarrod Johnson
2014-05-22 09:52:32 -04:00
parent d64b19a292
commit ad934dc1e3

View File

@@ -116,6 +116,7 @@ class Console(object):
return
if 'error' in response:
self._print_error(response['error'])
return
self.activated = True
#data[0:3] is reserved except for the test mode, which we don't use
data = response['data']