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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user