diff --git a/acceptance/lib/facter/acceptance/base_fact_utils.rb b/acceptance/lib/facter/acceptance/base_fact_utils.rb index 9815e4b743..2591c25a68 100644 --- a/acceptance/lib/facter/acceptance/base_fact_utils.rb +++ b/acceptance/lib/facter/acceptance/base_fact_utils.rb @@ -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