Fix no server id in audit log

This commit is contained in:
amcmanu3 2024-01-28 16:20:08 -05:00
parent 27678e93ca
commit e399d57f47

View File

@ -39,7 +39,7 @@ class ApiServersServerStdinHandler(BaseApiHandler):
self.controller.management.add_to_audit_log(
auth_data[4]["user_id"],
f"Sent command ({decoded}) to terminal",
server_id=0,
server_id=server_id,
source_ip=self.get_remote_ip(),
)
if svr.send_command(self.request.body.decode("utf-8")):