1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-04-20 01:29:01 +00:00

Fix controller not reporting an error if invalid options are passed to Qemu command line. Fixes #2517

This commit is contained in:
grossmj 2025-04-17 19:00:52 +07:00
parent 0e8d969cd2
commit 0826b9c259
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -458,10 +458,11 @@ class Compute:
# FIXME: slow down number of compute events
self._controller.notification.controller_emit("compute.updated", self.asdict())
else:
if action == "log.error":
log.error(event.pop("message"))
await self._controller.notification.dispatch(
action, event, project_id=project_id, compute_id=self.id
action,
event,
project_id=project_id,
compute_id=self.id
)
else:
if response.type == aiohttp.WSMsgType.CLOSE: