2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-07-16 09:31:11 +00:00

Fix closing ipmi session when not mapped

When not mapped, a noisy KeyError was occuring.  Handle
it to avoid cluttering log if the work is not needed.
This commit is contained in:
Jarrod Johnson
2019-12-10 14:38:12 -05:00
parent 3660cf18cc
commit a7b11d1e15

View File

@@ -312,7 +312,10 @@ class IpmiConsole(conapi.Console):
def __del__(self):
self.solconnection = None
del self.bmctonodemapping[self.bmc]
try:
del self.bmctonodemapping[self.bmc]
except KeyError:
pass
def handle_data(self, data):
if type(data) == dict: