2
0
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:
Jenkins
2017-04-20 14:57:10 +00:00
committed by Gerrit Code Review

View File

@@ -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()