From eaa2bd0c3d4a174452850ce8df072bef8d038429 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Wed, 22 Nov 2023 14:29:54 -0800 Subject: [PATCH] (FACT-3448) Skip minor OS version fact for Amazon --- acceptance/lib/facter/acceptance/base_fact_utils.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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