software package profiles implemeted, job deletion optimized

This commit is contained in:
2026-09-26 13:07:23 +02:00
parent 87a5041162
commit 7d314057e4
54 changed files with 3492 additions and 342 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ def refresh_mesh_presence() -> dict[str, int]:
if result.returncode != 0:
raise RuntimeError((result.stderr or result.stdout or "MeshCentral presence query failed").strip())
diagnostic_dir = Path(os.getenv("DIAGNOSTIC_DIR", "/app/data/logs/diagnostics"))
data_root = Path(os.getenv("ASSETMANAGER_DATA_ROOT", "/assetmanager-data"))
diagnostic_dir = Path(os.getenv("DIAGNOSTIC_DIR", str(data_root / "logs" / "diagnostics")))
presence_error_path = diagnostic_dir / "meshctrl-presence-last-error.stdout.json"
try:
devices = _extract_devices(_parse_json_output(result.stdout))