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

(FACT-3448) Skip minor OS version fact for Amazon #2646

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion acceptance/lib/facter/acceptance/base_fact_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def el_expected_facts(agent)
expected_facts['os.distro.id'] = os_distro_id
expected_facts['os.distro.release.full'] = os_distro_release_full
expected_facts['os.distro.release.major'] = os_version
expected_facts['os.distro.release.minor'] = /\d/ if os_version != '2' # Amazon Linux 2
# Minor versions are not available in Amazon Linux < 2023 and has not
# yet been implemented in Facter for >= 2023
expected_facts['os.distro.release.minor'] = /\d/ unless os_name = 'Amazon'
expected_facts['os.family'] = 'RedHat'
expected_facts['os.hardware'] = os_hardware
expected_facts['os.name'] = os_name
Expand Down