mirror of
https://opendev.org/x/pyghmi
synced 2025-02-20 12:30:48 +00:00
Merge "Do not reuse a session that is not logged"
This commit is contained in:
commit
fd82b398df
@ -303,7 +303,8 @@ class Session(object):
|
||||
if sockaddr in cls.bmc_handlers:
|
||||
self = cls.bmc_handlers[sockaddr]
|
||||
if (self.bmc == bmc and self.userid == userid and
|
||||
self.password == password and self.kgo == kg):
|
||||
self.password == password and self.kgo == kg and
|
||||
self.logged):
|
||||
trueself = self
|
||||
else:
|
||||
del cls.bmc_handlers[sockaddr]
|
||||
|
Loading…
x
Reference in New Issue
Block a user