software package profiles implemeted, job deletion optimized
This commit is contained in:
1 parent
87a5041162
commit
7d314057e4
54 files changed
+3492
-342
No files matched your search
+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