complex info handle

This commit is contained in:
Devaev Maxim
2020-07-09 09:41:05 +03:00
parent 53eb74670d
commit 5f1733d002
16 changed files with 270 additions and 138 deletions

View File

@@ -149,9 +149,9 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
self.__kvmd_ws = None
async def __process_ws_event(self, event: Dict) -> None:
if event["event_type"] == "info_state":
if event["event_type"] == "info_meta_state":
try:
host = event["event"]["meta"]["server"]["host"]
host = event["event"]["server"]["host"]
except Exception:
host = None
else: