Do not crash at start on NetBSD and OpenBSD by khorben · Pull Request #68773 · saltstack/salt

added 2 commits

February 26, 2026 19:18
This avoids accessing an undefined element of the grains dictionary, on
both NetBSD and OpenBSD. This matches the corresponding code for
FreeBSD.

Tested on NetBSD/amd64.
This patch restricts the OS version test to the part before "_" on
NetBSD; this could raise an exception if py-packaging wasn't aware of
the suffix (e.g., "BETA" would work but "STABLE" not).

Tested on NetBSD/amd64.

twangboy