summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/relay/drive.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-08-04 04:04:10 +0300
committerMaxim Devaev <[email protected]>2022-08-04 04:04:10 +0300
commit9ee63aba3ead6493acd01c89ffe17c503cdb4017 (patch)
tree16b2ee2c5daf1a45f255fc3b2d8d5bd1e79de94b /kvmd/plugins/msd/relay/drive.py
parent9925198762ab355343eb759e8117827a17645508 (diff)
refactored msd writer api
Diffstat (limited to 'kvmd/plugins/msd/relay/drive.py')
-rw-r--r--kvmd/plugins/msd/relay/drive.py4
1 files changed, 2 insertions, 2 deletions
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)