Skip to content

Detect ESXi (VMkernel) in discover_and_write_os_family - #299

Merged
alexandraBara merged 2 commits into
developmentfrom
esxi-osdetection-vmkernel
Sep 24, 2026
Merged

alexandraBara merged 2 commits into
developmentfrom
esxi-osdetection-vmkernel

Conversation

@spiral6

@spiral6 spiral6 commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

uname -s returns "VMkernel" on ESXi (exit 0), which currently falls through to OSFamily.LINUX. Map it to OSFamily.ESXI — mirroring the branch already in inbandmanager.py — so the CLI OS-family detection reaches the ESXi code paths in the in-band collectors. Without this, ESXi hosts are misdetected as Linux and every ESXi collector path is skipped. Add a unit test.

Summary

Test plan

  • pytest test/unit
  • pytest test/functional (if applicable)
  • pre-commit run --all-files

Checklist

  • Added/updated tests (or explained why not)
  • Updated docs/README if behavior changed
  • No secrets or credentials committed

`uname -s` returns "VMkernel" on ESXi (exit 0), which currently falls
through to OSFamily.LINUX. Map it to OSFamily.ESXI — mirroring the branch
already in inbandmanager.py — so the CLI OS-family detection reaches the
ESXi code paths in the in-band collectors. Without this, ESXi hosts are
misdetected as Linux and every ESXi collector path is skipped. Add a unit test.
@github-actions github-actions Bot added the tests label Sep 23, 2026
@spiral6
spiral6 marked this pull request as ready for review September 23, 2026 23:32
@alexandraBara
alexandraBara merged commit 8cb9a7f into development Sep 24, 2026
7 checks passed
@alexandraBara
alexandraBara deleted the esxi-osdetection-vmkernel branch September 24, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants