mirror of
https://opendev.org/x/pyghmi
synced 2025-09-15 14:48:06 +00:00
Merge "Fix cleanup loop of changing dictionary"
This commit is contained in:
@@ -288,7 +288,7 @@ class Session(object):
|
||||
|
||||
@classmethod
|
||||
def _cleanup(cls):
|
||||
for sesskey in cls.bmc_handlers:
|
||||
for sesskey in list(cls.bmc_handlers):
|
||||
session = cls.bmc_handlers[sesskey]
|
||||
session.cleaningup = True
|
||||
session.logout()
|
||||
|
Reference in New Issue
Block a user