Blame SOURCES/sos-centos-branding.patch

b116fd
diff -uNrp sos-3.9.orig/sos/policies/redhat.py sos-3.9/sos/policies/redhat.py
b116fd
--- sos-3.9.orig/sos/policies/redhat.py	2020-03-24 15:33:13.000000000 +0000
b116fd
+++ sos-3.9/sos/policies/redhat.py	2020-10-03 12:48:32.088747085 +0000
b116fd
@@ -89,7 +89,7 @@ class RedHatPolicy(LinuxPolicy):
b116fd
     def check(cls):
b116fd
         """This method checks to see if we are running on Red Hat. It must be
b116fd
         overriden by concrete subclasses to return True when running on a
b116fd
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
b116fd
+        Fedora, CentOS, RHEL or other Red Hat distribution or False otherwise."""
b116fd
         return False
0ddc38
 
b116fd
     def check_usrmove(self, pkgs):
b116fd
@@ -187,29 +187,29 @@ _opts_all_logs_verify = SoSOptions(all_l
b116fd
 _cb_profiles = ['boot', 'storage', 'system']
b116fd
 _cb_plugopts = ['boot.all-images=on', 'rpm.rpmva=on', 'rpm.rpmdb=on']
0ddc38
 
b116fd
-RHEL_RELEASE_STR = "Red Hat Enterprise Linux"
b116fd
+RHEL_RELEASE_STR = "CentOS Linux"
0ddc38
 
b116fd
 RHV = "rhv"
b116fd
-RHV_DESC = "Red Hat Virtualization"
b116fd
+RHV_DESC = "Virtualization"
0ddc38
 
b116fd
 RHEL = "rhel"
b116fd
 RHEL_DESC = RHEL_RELEASE_STR
0ddc38
 
b116fd
 RHOSP = "rhosp"
b116fd
-RHOSP_DESC = "Red Hat OpenStack Platform"
b116fd
+RHOSP_DESC = "OpenStack Platform"
0ddc38
 
b116fd
 RHOCP = "ocp"
b116fd
-RHOCP_DESC = "OpenShift Container Platform by Red Hat"
b116fd
+RHOCP_DESC = "OpenShift Container Platform"
b116fd
 RHOSP_OPTS = SoSOptions(plugopts=[
b116fd
                              'process.lsof=off',
b116fd
                              'networking.ethtool_namespaces=False',
b116fd
                              'networking.namespaces=200'])
0ddc38
 
b116fd
 RH_CFME = "cfme"
b116fd
-RH_CFME_DESC = "Red Hat CloudForms"
b116fd
+RH_CFME_DESC = "CloudForms"
0ddc38
 
b116fd
 RH_SATELLITE = "satellite"
b116fd
-RH_SATELLITE_DESC = "Red Hat Satellite"
b116fd
+RH_SATELLITE_DESC = "Satellite"
b116fd
 SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on'])
0ddc38
 
b116fd
 CB = "cantboot"
b116fd
@@ -257,8 +257,8 @@ RH_FTP_HOST = "ftp://dropbox.redhat.com"
0ddc38
 
b116fd
 class RHELPolicy(RedHatPolicy):
b116fd
     distro = RHEL_RELEASE_STR
b116fd
-    vendor = "Red Hat"
b116fd
-    vendor_url = "https://access.redhat.com/support/"
b116fd
+    vendor = "CentOS"
b116fd
+    vendor_url = "https://wiki.centos.org/support"
b116fd
     msg = _("""\
b116fd
 This command will collect diagnostic and configuration \
b116fd
 information from this %(distro)s system and installed \
b116fd
@@ -280,7 +280,7 @@ support representative.
b116fd
     def check(cls):
b116fd
         """Test to see if the running host is a RHEL installation.
b116fd
 
b116fd
-            Checks for the presence of the "Red Hat Enterprise Linux"
b116fd
+            Checks for the presence of the "CentOS Linux"
b116fd
             release string at the beginning of the NAME field in the
b116fd
             `/etc/os-release` file and returns ``True`` if it is
b116fd
             found, and ``False`` otherwise.
b116fd
@@ -334,7 +334,7 @@ support representative.
b116fd
 
b116fd
     def get_upload_url_string(self):
b116fd
         if self.get_upload_url().startswith(RH_API_HOST):
b116fd
-            return "Red Hat Customer Portal"
b116fd
+            return "Customer Portal"
b116fd
         return self.upload_url or RH_FTP_HOST
b116fd
 
b116fd
     def get_upload_user(self):
b116fd
@@ -389,7 +389,7 @@ class CentOsPolicy(RHELPolicy):
b116fd
 
b116fd
 ATOMIC = "atomic"
b116fd
 ATOMIC_RELEASE_STR = "Atomic"
b116fd
-ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
b116fd
+ATOMIC_DESC = "Atomic Host"
b116fd
 
b116fd
 atomic_presets = {
b116fd
     ATOMIC: PresetDefaults(name=ATOMIC, desc=ATOMIC_DESC, note=NOTE_TIME,
b116fd
@@ -398,7 +398,7 @@ atomic_presets = {
b116fd
 
b116fd
 
b116fd
 class RedHatAtomicPolicy(RHELPolicy):
b116fd
-    distro = "Red Hat Atomic Host"
b116fd
+    distro = "Atomic Host"
b116fd
     msg = _("""\
b116fd
 This command will collect diagnostic and configuration \
b116fd
 information from this %(distro)s system.
b116fd
@@ -435,7 +435,7 @@ support representative.
0ddc38
 
0ddc38
 
b116fd
 class RedHatCoreOSPolicy(RHELPolicy):
b116fd
-    distro = "Red Hat CoreOS"
b116fd
+    distro = "CoreOS"
b116fd
     msg = _("""\
b116fd
 This command will collect diagnostic and configuration \
b116fd
 information from this %(distro)s system.
b116fd
@@ -456,7 +456,7 @@ support representative.
b116fd
         host_release = os.environ[ENV_HOST_SYSROOT] + cls._redhat_release
b116fd
         try:
b116fd
             for line in open(host_release, 'r').read().splitlines():
b116fd
-                coreos |= 'Red Hat CoreOS' in line
b116fd
+                coreos |= 'CoreOS' in line
b116fd
         except IOError:
b116fd
             pass
b116fd
         return coreos
b116fd
diff -uNrp sos-3.9.orig/sos/policies/redhat.py sos-3.9/sos/policies/redhat.py
b116fd
--- sos-3.9.orig/sos/policies/redhat.py	2021-02-02 15:39:49.180326048 +0000
b116fd
+++ sos-3.9/sos/policies/redhat.py	2021-02-02 15:44:02.907874181 +0000
b116fd
@@ -31,9 +31,9 @@ except NameError:
0ddc38
 
0ddc38
 
0ddc38
 class RedHatPolicy(LinuxPolicy):
0ddc38
-    distro = "Red Hat"
0ddc38
-    vendor = "Red Hat"
b116fd
-    vendor_url = "https://www.redhat.com/"
0ddc38
+    distro = "CentOS"
0ddc38
+    vendor = "CentOS"
b116fd
+    vendor_url = "https://www.centos.org/"
b116fd
     _redhat_release = '/etc/redhat-release'
0ddc38
     _tmp_dir = "/var/tmp"
b116fd
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\\n"'
b116fd
@@ -87,9 +87,9 @@ class RedHatPolicy(LinuxPolicy):
0ddc38
 
0ddc38
     @classmethod
b116fd
     def check(cls):
0ddc38
-        """This method checks to see if we are running on Red Hat. It must be
b116fd
+        """This method checks to see if we are running on CentOS Linux. It must be
0ddc38
         overriden by concrete subclasses to return True when running on a
b116fd
-        Fedora, CentOS, RHEL or other Red Hat distribution or False otherwise."""
b116fd
+        Fedora, CentOS, RHEL or other CentOS distribution or False otherwise."""
0ddc38
         return False
0ddc38
 
b116fd
     def check_usrmove(self, pkgs):
b116fd
@@ -309,7 +309,7 @@ support representative.
b116fd
             return
b116fd
         if self.case_id:
b116fd
             self.upload_user = input(_(
b116fd
-                "Enter your Red Hat Customer Portal username (empty to use "
b116fd
+                "Enter your Customer Portal username (empty to use "
b116fd
                 "public dropbox): ")
b116fd
             )
b116fd
             if not self.upload_user: