HomeSoftware Heritage

Use operatingsystemmajrelease fact

Description

Use operatingsystemmajrelease fact

This fact was introduced in Facter 1.7 which by now can be assumed. By
now it's already deprecated in favor of $facts['os']['release']['major']
but the rest of the module isn't converted so this keeps it consistent.

CentOS 8 stream doesn't have a minor version and the previous comparison
code failed.

There are a lot more odd cases with facts, but I don't want to touch too
much code.

Details

Provenance
Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>Authored on Dec 22 2020, 7:03 PM
olasdPushed on Dec 28 2021, 10:47 AM
Parents
rSPAPAb54431dd6a8e: Merge pull request #2120 from ekohl/use-shared-examples-for-facts
Branches
Unknown
Tags
Unknown

Event Timeline

Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> committed rSPAPA5b2a52454682: Use operatingsystemmajrelease fact (authored by Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>).Feb 15 2021, 1:46 PM