From 69a25cff827d6cab2cab3ed4287c59efabb587d2 Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Mon, 7 Sep 2026 22:42:38 -0500 Subject: [PATCH] fix(node_health): say 'active via ', not a bare parenthetical The unit name in the swap-active detail read as an unlabelled aside. Naming it as the unit that activated the swap is what makes the line actionable. Co-Authored-By: Claude Opus 5 --- infra/ansible/roles/node_health/tasks/assess.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/ansible/roles/node_health/tasks/assess.yml b/infra/ansible/roles/node_health/tasks/assess.yml index b2a1a80..1e34098 100644 --- a/infra/ansible/roles/node_health/tasks/assess.yml +++ b/infra/ansible/roles/node_health/tasks/assess.yml @@ -554,7 +554,7 @@ swap_detail: >- {{ 'swap state unreadable' if m.swap_total_kb is not number else ((swap_active_gib ~ ' GiB swap active' - ~ (' (' ~ swap_units_returning ~ ')' if swap_units_returning else '') + ~ (' via ' ~ swap_units_returning if swap_units_returning else '') ~ ' — ' ~ swap_cause) if (m.swap_total_kb | int) > 0 else ('no swap active, but it would come back at the next boot via '