2
0
mirror of https://opendev.org/x/pyghmi synced 2026-03-29 06:13:30 +00:00

Fix attribute error on particularly bad connections

When simulating 80% packet loss, it was discovered that a console
being close() due to inability to complete session establishment
will not have keepaliveid registered yet.

Change-Id: I839645b13cbe30ae71e104c44e63896a4802befe
This commit is contained in:
Jarrod Johnson
2014-05-09 15:52:20 -04:00
parent 0115a3d79b
commit 5e604af2be

View File

@@ -42,6 +42,7 @@ class Console(object):
def __init__(self, bmc, userid, password,
iohandler, port=623,
force=False, kg=None):
self.keepaliveid = None
self.connected = False
self.broken = False
self.out_handler = iohandler