summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/relay
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-30 18:15:50 +0300
committerMaxim Devaev <[email protected]>2022-07-30 18:15:50 +0300
commit589ec14de02de4ecf960d13d675c7f1efaa74b7c (patch)
treec0a3be50145de8f1f8eb4d3e600b9ba16c0a6482 /kvmd/plugins/msd/relay
parent5ee8f7a7a34641392213cbf932a61455d87bddbd (diff)
Fixed pikvm/pikvm#783: remove incomplete msd image
Diffstat (limited to 'kvmd/plugins/msd/relay')
-rw-r--r--kvmd/plugins/msd/relay/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/relay/__init__.py b/kvmd/plugins/msd/relay/__init__.py
index c4891a96..ff83010e 100644
--- a/kvmd/plugins/msd/relay/__init__.py
+++ b/kvmd/plugins/msd/relay/__init__.py
@@ -229,8 +229,10 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
raise MsdMultiNotSupported()
@contextlib.asynccontextmanager
- async def write_image(self, name: str, size: int) -> AsyncGenerator[int, None]:
+ async def write_image(self, name: str, size: int, remove_incomplete: Optional[bool]) -> AsyncGenerator[int, None]:
async with self.__working():
+ if remove_incomplete is not None:
+ raise MsdMultiNotSupported()
async with self.__region:
try:
assert self.__device_info