software package profiles implemeted, job deletion optimized
This commit is contained in:
+2
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user