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

Sorting of the kernelrelease fact could be better #731

Open
gdubicki opened this issue Dec 16, 2022 · 0 comments
Open

Sorting of the kernelrelease fact could be better #731

gdubicki opened this issue Dec 16, 2022 · 0 comments

Comments

@gdubicki
Copy link
Member

gdubicki commented Dec 16, 2022

The values of kernelrelease fact for my Centos 7 nodes sorted in descending order are now sorted as alphanumeric strings, so for example like this:

3.10.0-957.5.1.el7.x86_64
3.10.0-862.14.4.el7.x86_64
3.10.0-693.21.1.el7.x86_64
3.10.0-1160.76.1.el7.x86_64
3.10.0-1127.19.1.el7.x86_64
3.10.0-1062.9.1.el7.x86_64
3.10.0-1062.18.1.el7.x86_64
3.10.0-1062.1.2.el7.x86_64

...while I would expect them interpreted as package versions and shown from latest to oldest so like this:

3.10.0-1127.19.1.el7.x86_64
3.10.0-1160.76.1.el7.x86_64
3.10.0-1062.18.1.el7.x86_64
3.10.0-1062.9.1.el7.x86_64
3.10.0-1062.1.2.el7.x86_64
3.10.0-957.5.1.el7.x86_64
3.10.0-862.14.4.el7.x86_64
3.10.0-693.21.1.el7.x86_64
@gdubicki gdubicki changed the title Sorting of kernelrelease facts could be better Sorting of the kernelrelease fact could be better Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant