fix sync&key bugs

This commit is contained in:
mmilavkin
2024-02-18 16:57:41 +02:00
parent bc4f36e1b9
commit a2f7c09d09
3 changed files with 5 additions and 5 deletions

2
lib.py
View File

@ -64,7 +64,7 @@ class Server:
# Looking for any users with provided name. len(result) != 1 is a problem.
result = []
for key in self.client.get_keys():
if key.name == name:
if key.key_id == name:
result.append(name)
self.log.info(f"check_client found client `{name}` config is correct.")
if len(result) != 1: