summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-18 03:40:57 +0200
committerMaxim Devaev <[email protected]>2023-03-18 03:40:57 +0200
commit03ce7bfd2c5823d623cae0f6d9dc2b712869583a (patch)
treec49ab52ab0dff7751a006c8840bc2177ca92d835 /kvmd
parent18a8e5c9efadf4d95b06a5dbf08fa49182237b48 (diff)
removed some msd api legacy
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/msd/disabled.py5
-rw-r--r--kvmd/plugins/msd/otg/__init__.py8
2 files changed, 3 insertions, 10 deletions
diff --git a/kvmd/plugins/msd/disabled.py b/kvmd/plugins/msd/disabled.py
index 1c96f077..3bfcd3c6 100644
--- a/kvmd/plugins/msd/disabled.py
+++ b/kvmd/plugins/msd/disabled.py
@@ -47,11 +47,6 @@ class Plugin(BaseMsd):
"busy": False,
"storage": None,
"drive": None,
- "features": {
- "multi": False,
- "cdrom": False,
- "rw": False,
- },
}
async def poll_state(self) -> AsyncGenerator[dict, None]:
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index 1f082480..9e759f54 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -173,8 +173,11 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
storage = dataclasses.asdict(self.__state.storage)
for name in list(storage["images"]):
+ del storage["images"][name]["name"]
del storage["images"][name]["path"]
del storage["images"][name]["in_storage"]
+ for name in list(storage["parts"]):
+ del storage["parts"][name]["name"]
storage["downloading"] = (self.__reader.get_state() if self.__reader else None)
storage["uploading"] = (self.__writer.get_state() if self.__writer else None)
@@ -191,11 +194,6 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
"busy": self.__state.is_busy(),
"storage": storage,
"drive": vd,
- "features": {
- "multi": True,
- "cdrom": True,
- "rw": True,
- },
}
async def poll_state(self) -> AsyncGenerator[dict, None]: