Merge remote-tracking branch 'origin/main' into fix/bsd-role-and-cpu

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
Christian Manivong committed 2026-11-02 00:31:34 +01:00
commit 9ef8f458ee
3 files changed
+21 -1

No files matched your search

+4 -1
View File
@@ -402,6 +402,9 @@ class BsdDriver(SnmpAgentMixin, EnsurePackageMixin, HostStatusMixin, OSDriver):
first, and without root when that brings nothing back, which the
reading then says (``attributed: False``). BSD has no systemd units or
container IDs to name.
:raises RuntimeError: when the reading without root fails too: a list
that was never read must not read as every port closed.
"""
privileged = self.run_command(self.LISTENING_COMMAND, privileged=True)
if privileged.exit_code == 0 and privileged.stdout.strip():
@@ -410,7 +413,7 @@ class BsdDriver(SnmpAgentMixin, EnsurePackageMixin, HostStatusMixin, OSDriver):
"sockets": self._parse_listening(privileged.stdout, attributed=True),
}
command = self.LISTENING_FALLBACK_COMMAND or self.LISTENING_COMMAND
plain = self.run_command(command, privileged=False)
plain = self._read(command)
return {
"attributed": False,
"sockets": self._parse_listening(plain.stdout, attributed=False),