Skip to content

inventory/linux: Use Python script to check version (3.27.x)#3126

Merged
nickanderson merged 1 commit into
cfengine:3.27.xfrom
nickanderson:backport-3088-3.27.x
Apr 15, 2026
Merged

inventory/linux: Use Python script to check version (3.27.x)#3126
nickanderson merged 1 commit into
cfengine:3.27.xfrom
nickanderson:backport-3088-3.27.x

Conversation

@nickanderson
Copy link
Copy Markdown
Member

Backport of #3088 to 3.27.x

Get rid of shells and other command and use Python itself for version check.
Get major/minor via tuple for compatibility with very ancient Python versions (sys.version_info.major etc introduced in 2.7).

Original PR: #3088
Ticket: none
Changelog: none

Get rid of shells and other command and use Python itself for version
check.
Get major/minor via tuple for compatibility with very ancient Python
versions (sys.version_info.major etc introduced in 2.7) [1].

[1] https://docs.python.org/2/library/sys.html#sys.version_info

Co-Authored-By: Nick Anderson <nick@cmdln.org>
@nickanderson nickanderson merged commit 8983d7b into cfengine:3.27.x Apr 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants