Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to retrieve OS major version number from OS_VERSION_PARAMS #242

Open
jouvin opened this issue Dec 18, 2024 · 0 comments
Open
Milestone

Comments

@jouvin
Copy link
Contributor

jouvin commented Dec 18, 2024

Currently (24.10.0), OS_VERSION_PARAMS variable (dict) contains a parameter majorversion that was designed to be a string to accomodate any versioning/naming scheme (including names). The problem is that comparison is done across the template library with a string comparison, like >= '9' (for RHEL derivatives) but it will not work with v10 and later... Rather than fixing each comparison by converting the string to a long with the risk of a version string that cannot be converted, the idea is to implement a function like get_os_major_version() that will do what is necessary to return a number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant