summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorRick Elrod <rick@elrod.me>2021-01-13 16:54:04 -0600
committerGitHub <noreply@github.com>2021-01-13 17:54:04 -0500
commit7f0eb7ad799e531a8fbe5cc4f46046a4b1aeb093 (patch)
tree723166c56a4bdf46a62e7f6464d814047cbc824d /hacking
parent4164cb26f0ef79eb9744518f0ac0d351cd89bf87 (diff)
downloadansible-7f0eb7ad799e531a8fbe5cc4f46046a4b1aeb093.tar.gz
[facts] Differentiate CentOS vs CentOS Stream (#73034)
Change: - On CentOS Stream, make distribution_release be "Stream" - On CentOS Core, it continues to be "Core" - Implement custom distribution file parser for CentOS, so we can look for "CentOS Linux" and "CentOS Stream" - Two new fixtures introduced (CentOS Linux 8.1 and CentOS Stream 8) - Removed two dicts from `Distribution` class that were seemingly not used anywhere. Test Plan: - ci_complete - New test fixtures Tickets: - Fixes #73027 Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/tests/gen_distribution_version_testcase.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/hacking/tests/gen_distribution_version_testcase.py b/hacking/tests/gen_distribution_version_testcase.py
index a1573bfc52..a1c62a33fc 100755
--- a/hacking/tests/gen_distribution_version_testcase.py
+++ b/hacking/tests/gen_distribution_version_testcase.py
@@ -25,6 +25,7 @@ from ansible.module_utils._text import to_text
filelist = [
'/etc/oracle-release',
'/etc/slackware-version',
+ '/etc/centos-release',
'/etc/redhat-release',
'/etc/vmware-release',
'/etc/openwrt_release',