mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-22 08:50:09 +00:00
Secure controller to compute communication using HTTP basic authentication
This commit is contained in:
@ -119,6 +119,7 @@ class Compute:
|
||||
"""
|
||||
Set authentication parameters
|
||||
"""
|
||||
|
||||
if user is None or len(user.strip()) == 0:
|
||||
self._user = None
|
||||
self._password = None
|
||||
@ -468,6 +469,8 @@ 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
|
||||
)
|
||||
|
Reference in New Issue
Block a user