summaryrefslogtreecommitdiff
path: root/kvmd/clients/pst.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/clients/pst.py')
-rw-r--r--kvmd/clients/pst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/clients/pst.py b/kvmd/clients/pst.py
index 6b9f5234..868f388c 100644
--- a/kvmd/clients/pst.py
+++ b/kvmd/clients/pst.py
@@ -75,7 +75,7 @@ class PstClient:
if msg.type != aiohttp.WSMsgType.TEXT:
raise PstError(f"Unexpected message type: {msg!r}")
(event_type, event) = htserver.parse_ws_event(msg.data)
- if event_type == "storage_state":
+ if event_type == "storage":
if not event["data"]["write_allowed"]:
raise PstError("Write is not allowed")
path = event["data"]["path"]