summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/relay/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-24 15:42:43 +0300
committerMaxim Devaev <[email protected]>2022-07-24 15:42:43 +0300
commit1564c6872739b64754ca548e5f58248465c31810 (patch)
tree2da351590d209c35f33b71aa71e775f4867264a2 /kvmd/plugins/msd/relay/__init__.py
parent800da7167085250c5989a14bf10e5c70cae35674 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/msd/relay/__init__.py')
-rw-r--r--kvmd/plugins/msd/relay/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/relay/__init__.py b/kvmd/plugins/msd/relay/__init__.py
index 2b45bce3..c4891a96 100644
--- a/kvmd/plugins/msd/relay/__init__.py
+++ b/kvmd/plugins/msd/relay/__init__.py
@@ -237,7 +237,12 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
if self.__connected:
raise MsdConnectedError()
- self.__device_writer = await MsdImageWriter(self.__device_info.path, size, self.__sync_chunk_size).open()
+ self.__device_writer = await MsdImageWriter(
+ notifier=self.__notifier,
+ path=self.__device_info.path,
+ size=size,
+ sync=self.__sync_chunk_size,
+ ).open()
await self.__write_image_info(False)
await self.__notifier.notify()