From da927ea30e49c3b1a585cd4385476eaeebc76abf Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 10 Sep 2026 01:05:42 +0200 Subject: [PATCH] Name the workload, not the candidate, in the restart-policy refusal is_permanently_stopped is called on the incumbent as well as the candidate since 8448f83, so a message naming only the candidate would misdirect the first person who hits it. Unreachable today -- observe_unit guarantees every recorded workload is Restart=no -- which is exactly why the wording would be read cold. Co-Authored-By: Claude Opus 5 --- src/drivers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers.rs b/src/drivers.rs index 7a4429d..f264d4c 100644 --- a/src/drivers.rs +++ b/src/drivers.rs @@ -2969,7 +2969,7 @@ impl WorkloadPort for SystemdTransientWorkloadDriver { fn is_permanently_stopped(&self, observation: &WorkloadObservation) -> Result { ensure!( observation.restart_policy == "no", - "candidate unit does not carry the admitted Restart=no policy" + "workload unit does not carry the admitted Restart=no policy" ); let Some(unit) = self.show_unit(&observation.unit)? else { // systemd has forgotten the unit entirely, so nothing will start it.