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:
1 parent
85af4659f1
commit
74802efd0e
7 files changed
+15
-12
No files matched your search
+1
-1
@@ -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}")))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user