summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-10-05 09:23:48 +0300
committerDevaev Maxim <[email protected]>2019-10-05 09:23:48 +0300
commite97d48b363b79a27e0956fb7e8e187066e4b8e86 (patch)
treef2cd185e9cb66d7ff3e663f7517076774daaad20 /kvmd/apps
parenta073113f383bdeac7a442eae04df2ece642eae5b (diff)
cdrom flag; written fix
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py
index 81f2c0b4..04030545 100644
--- a/kvmd/apps/kvmd/server.py
+++ b/kvmd/apps/kvmd/server.py
@@ -481,7 +481,9 @@ class Server: # pylint: disable=too-many-instance-attributes
@_exposed("POST", "/msd/select")
async def __msd_select_handler(self, request: aiohttp.web.Request) -> aiohttp.web.Response:
- return _json(await self.__msd.select(valid_msd_image_name(request.query.get("image_name"))))
+ image_name = valid_msd_image_name(request.query.get("image_name"))
+ cdrom = valid_bool(request.query.get("cdrom", "true"))
+ return _json(await self.__msd.select(image_name, cdrom))
@_exposed("POST", "/msd/remove")
async def __msd_remove_handler(self, request: aiohttp.web.Request) -> aiohttp.web.Response: