From 22db176ef05df0b49a9e40e3c31c886dfcb710b5 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Wed, 22 Mar 2023 04:44:07 +0200 Subject: removed aiofs --- kvmd/apps/vnc/vncauth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'kvmd/apps/vnc/vncauth.py') 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("#"): -- cgit v1.2.3