Compare commits
No commits in common. "42056f3df653c46a684268cf5bbfb6b8e67d94b1" and "2ed8949aaf238a4d06036410067fcf14b36d9d33" have entirely different histories.
42056f3df6
...
2ed8949aaf
1 changed files with 1 additions and 1 deletions
2
app.py
2
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()[-500:] or "sysctl audit failed")
|
||||
raise HTTPException(502, (err or out).strip()[:300] or "sysctl audit failed")
|
||||
try:
|
||||
result = json.loads(out)
|
||||
except json.JSONDecodeError as exc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue