chore(host-agent): say why the root helper keeps its own os-release reader
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user