mirror of
https://opendev.org/x/pyghmi
synced 2025-09-19 08:18:20 +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:
@@ -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']
|
||||
|
Reference in New Issue
Block a user