From 9ee63aba3ead6493acd01c89ffe17c503cdb4017 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 4 Aug 2022 04:04:10 +0300 Subject: refactored msd writer api --- kvmd/plugins/msd/relay/drive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvmd/plugins/msd/relay/drive.py') diff --git a/kvmd/plugins/msd/relay/drive.py b/kvmd/plugins/msd/relay/drive.py index 2e95e837..e1301f99 100644 --- a/kvmd/plugins/msd/relay/drive.py +++ b/kvmd/plugins/msd/relay/drive.py @@ -32,7 +32,7 @@ from typing import Optional from .... import aiotools from .... import aiofs -from .. import MsdImageWriter +from .. import MsdFileWriter # ===== @@ -121,7 +121,7 @@ class DeviceInfo: image=image_info, ) - async def write_image_info(self, device_writer: MsdImageWriter, complete: bool) -> bool: + async def write_image_info(self, device_writer: MsdFileWriter, complete: bool) -> bool: device_file = device_writer.get_file() state = device_writer.get_state() image_info = ImageInfo(state["name"], state["written"], complete) -- cgit v1.2.3