From 39685585cde789a144b2347fc3a1b4fb2287c623 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 15 Oct 2026 11:52:35 -0400 Subject: [PATCH] chore(host-agent): say why the root helper keeps its own os-release reader Co-Authored-By: Claude Opus 5.5 --- plugins/host_agent/files/maint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/host_agent/files/maint.py b/plugins/host_agent/files/maint.py index 4a31b72..20bd07f 100644 --- a/plugins/host_agent/files/maint.py +++ b/plugins/host_agent/files/maint.py @@ -136,6 +136,8 @@ def upgraded_count(output: str) -> int | None: return sum(int(c) for c in counts) if counts else None +# The same as the agent's: this helper runs as root on its own and imports +# nothing of the agent's, so it keeps its own copy. def _os_release_id(path: str = "/etc/os-release") -> str: try: with open(path) as fh: