diff options
author | Maxim Devaev <[email protected]> | 2025-01-05 15:19:04 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2025-01-05 15:19:04 +0200 |
commit | 4488365dfbbf7b35cd7b27f0392768e273cd271d (patch) | |
tree | fc91746f67bcfed4b62e10738ae07d6a08547db1 /kvmd/apps/pstrun/__init__.py | |
parent | 5a61ddecd3a6fadb71464cc32823e63a8009fb2b (diff) |
removed _state suffix from all ws events
Diffstat (limited to 'kvmd/apps/pstrun/__init__.py')
-rw-r--r-- | kvmd/apps/pstrun/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/pstrun/__init__.py b/kvmd/apps/pstrun/__init__.py index 33e1396e..d55835fd 100644 --- a/kvmd/apps/pstrun/__init__.py +++ b/kvmd/apps/pstrun/__init__.py @@ -84,7 +84,7 @@ async def _run_cmd_ws(cmd: list[str], ws: aiohttp.ClientWebSocketResponse) -> in msg = receive_task.result() if msg.type == aiohttp.WSMsgType.TEXT: (event_type, event) = htserver.parse_ws_event(msg.data) - if event_type == "storage_state": + if event_type == "storage": if event["data"]["write_allowed"] and proc is None: logger.info("PST write is allowed: %s", event["data"]["path"]) logger.info("Running the process ...") |