From fcf1fb38160f14f1838606124b39211d26ac1bce Mon Sep 17 00:00:00 2001 From: sascha Date: Sat, 8 Aug 2026 22:25:43 +0200 Subject: [PATCH] fix: sysctl remote error tail report --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 1496ad1..660a9aa 100644 --- a/app.py +++ b/app.py @@ -1250,7 +1250,7 @@ async def system_sysctl_audit(host: str, _=Depends(_verify)): target = f'{inventory["user"]}@{inventory["ip"]}' rc, out, err = await asyncio.to_thread(_ssh, target, _sysctl_audit_command(), 30) if rc != 0: - raise HTTPException(502, (err or out).strip()[:300] or "sysctl audit failed") + raise HTTPException(502, (err or out).strip()[-500:] or "sysctl audit failed") try: result = json.loads(out) except json.JSONDecodeError as exc: -- 2.49.1