mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-16 01:21:12 +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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user