diff options
author | Maxim Devaev <[email protected]> | 2023-03-22 04:44:07 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-22 04:44:07 +0200 |
commit | 22db176ef05df0b49a9e40e3c31c886dfcb710b5 (patch) | |
tree | 49e3b409e66706dd327604a72dcaac0583628e38 /kvmd/apps/vnc | |
parent | 6c0f5cccb94fc8092a49d90eca89fe89e9cf923a (diff) |
removed aiofs
Diffstat (limited to 'kvmd/apps/vnc')
-rw-r--r-- | kvmd/apps/vnc/vncauth.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kvmd/apps/vnc/vncauth.py b/kvmd/apps/vnc/vncauth.py index c7c04864..ebda9ef4 100644 --- a/kvmd/apps/vnc/vncauth.py +++ b/kvmd/apps/vnc/vncauth.py @@ -24,7 +24,7 @@ import dataclasses from ...logging import get_logger -from ... import aiofs +from ... import aiotools # ===== @@ -61,8 +61,7 @@ class VncAuthManager: return ({}, (not self.__enabled)) async def __inner_read_credentials(self) -> dict[str, VncAuthKvmdCredentials]: - lines = (await aiofs.read(self.__path)).split("\n") - + lines = (await aiotools.read_file(self.__path)).split("\n") credentials: dict[str, VncAuthKvmdCredentials] = {} for (lineno, line) in enumerate(lines): if len(line.strip()) == 0 or line.lstrip().startswith("#"): |