systemd: make unit_status read-only (GetUnit only, never LoadUnit)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-16 09:30:52 -04:00
1 parent 85af4659f1
commit 74802efd0e
7 files changed
+15 -12

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ impl SystemdSource for FakeSystemd {
.iter()
.find(|u| u.name == name)
.cloned()
.ok_or_else(|| AppError::NotFound(format!("unit {name}")))
.ok_or_else(|| AppError::NotFound(format!("unit not loaded or unknown: {name}")))
}
}