From ad934dc1e3555ff220db237bbac8339eff27d2fd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 22 May 2014 09:52:32 -0400 Subject: [PATCH] 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 --- pyghmi/ipmi/console.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyghmi/ipmi/console.py b/pyghmi/ipmi/console.py index d2b63d13..0880852d 100644 --- a/pyghmi/ipmi/console.py +++ b/pyghmi/ipmi/console.py @@ -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']