From 81f76475f1fd28b88fa4e0256cc5c00346b2af37 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 11 Sep 2017 17:03:27 +0200 Subject: [PATCH] Rename SuSE distribution helper function to SUSE (#29090) This is a noop change, but the company renamed itself from SuSE to SUSE round about 15 years ago. See https://www.suse.com/brandcentral/suse/identity.php --- lib/ansible/module_utils/facts/system/distribution.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/module_utils/facts/system/distribution.py b/lib/ansible/module_utils/facts/system/distribution.py index 8cac43538c..f4e06de3f3 100644 --- a/lib/ansible/module_utils/facts/system/distribution.py +++ b/lib/ansible/module_utils/facts/system/distribution.py @@ -64,8 +64,8 @@ class DistributionFiles: {'path': '/etc/system-release', 'name': 'Amazon'}, {'path': '/etc/alpine-release', 'name': 'Alpine'}, {'path': '/etc/arch-release', 'name': 'Archlinux', 'allowempty': True}, - {'path': '/etc/os-release', 'name': 'SuSE'}, - {'path': '/etc/SuSE-release', 'name': 'SuSE'}, + {'path': '/etc/os-release', 'name': 'SUSE'}, + {'path': '/etc/SuSE-release', 'name': 'SUSE'}, {'path': '/etc/gentoo-release', 'name': 'Gentoo'}, {'path': '/etc/os-release', 'name': 'Debian'}, {'path': '/etc/lsb-release', 'name': 'Mandriva'}, @@ -228,7 +228,7 @@ class DistributionFiles: alpine_facts['distribution_version'] = data return True, alpine_facts - def parse_distribution_file_SuSE(self, name, data, path, collected_facts): + def parse_distribution_file_SUSE(self, name, data, path, collected_facts): suse_facts = {} if 'suse' not in data.lower(): return False, suse_facts # TODO: remove if tested without this @@ -370,8 +370,8 @@ class Distribution(object): {'path': '/etc/system-release', 'name': 'Amazon'}, {'path': '/etc/alpine-release', 'name': 'Alpine'}, {'path': '/etc/arch-release', 'name': 'Archlinux', 'allowempty': True}, - {'path': '/etc/os-release', 'name': 'SuSE'}, - {'path': '/etc/SuSE-release', 'name': 'SuSE'}, + {'path': '/etc/os-release', 'name': 'SUSE'}, + {'path': '/etc/SuSE-release', 'name': 'SUSE'}, {'path': '/etc/gentoo-release', 'name': 'Gentoo'}, {'path': '/etc/os-release', 'name': 'Debian'}, {'path': '/etc/lsb-release', 'name': 'Mandriva'},