Blame SOURCES/sos-3.8-centos-branding.patch

5150eb
diff -uNrp sos-3.8.orig/sos/policies/redhat.py sos-3.8/sos/policies/redhat.py
a4b4c0
--- sos-3.8.orig/sos/policies/redhat.py	2020-05-12 15:45:00.128929276 +0000
a4b4c0
+++ sos-3.8/sos/policies/redhat.py	2020-05-12 15:59:16.328778927 +0000
5150eb
@@ -23,9 +23,9 @@ OS_RELEASE = "/etc/os-release"
5150eb
 
5150eb
 
5150eb
 class RedHatPolicy(LinuxPolicy):
5150eb
-    distro = "Red Hat"
5150eb
-    vendor = "Red Hat"
5150eb
-    vendor_url = "http://www.redhat.com/"
5150eb
+    distro = "CentOS"
5150eb
+    vendor = "CentOS"
a4b4c0
+    vendor_url = "http://www.centos.org/"
5150eb
     _redhat_release = '/etc/redhat-release'
5150eb
     _tmp_dir = "/var/tmp"
5150eb
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\\n"'
5150eb
@@ -77,9 +77,9 @@ class RedHatPolicy(LinuxPolicy):
5150eb
 
5150eb
     @classmethod
5150eb
     def check(cls):
5150eb
-        """This method checks to see if we are running on Red Hat. It must be
5150eb
+        """This method checks to see if we are running on CentOS. It must be
5150eb
         overriden by concrete subclasses to return True when running on a
5150eb
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
5150eb
+        Fedora, RHEL or CentOS distribution or False otherwise."""
5150eb
         return False
5150eb
 
5150eb
     def check_usrmove(self, pkgs):
a4b4c0
@@ -178,26 +178,26 @@ _cb_plugs = ['abrt', 'block', 'boot', 'd
5150eb
              'hardware', 'host', 'kernel', 'logs', 'lvm2', 'memory', 'rpm',
5150eb
              'process', 'systemd', 'yum', 'xfs']
5150eb
 
5150eb
-RHEL_RELEASE_STR = "Red Hat Enterprise Linux"
5150eb
+RHEL_RELEASE_STR = "CentOS Linux"
5150eb
 
5150eb
 RHV = "rhv"
5150eb
-RHV_DESC = "Red Hat Virtualization"
5150eb
+RHV_DESC = "Virtualization"
5150eb
 
5150eb
 RHEL = "rhel"
5150eb
 RHEL_DESC = RHEL_RELEASE_STR
5150eb
 
5150eb
 RHOSP = "rhosp"
5150eb
-RHOSP_DESC = "Red Hat OpenStack Platform"
5150eb
+RHOSP_DESC = "OpenStack"
a4b4c0
 RHOSP_OPTS = SoSOptions(plugopts=[
a4b4c0
                              'process.lsof=off',
a4b4c0
                              'networking.ethtool_namespaces=False',
a4b4c0
                              'networking.namespaces=200'])
5150eb
 
5150eb
 RHOCP = "ocp"
5150eb
-RHOCP_DESC = "OpenShift Container Platform by Red Hat"
5150eb
+RHOCP_DESC = "RDO"
5150eb
 
5150eb
 RH_SATELLITE = "satellite"
5150eb
-RH_SATELLITE_DESC = "Red Hat Satellite"
5150eb
+RH_SATELLITE_DESC = "Satellite"
5150eb
 SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on'])
5150eb
 
5150eb
 CB = "cantboot"
a4b4c0
@@ -236,9 +236,9 @@ No changes will be made to system config
5150eb
 
5150eb
 
5150eb
 class RHELPolicy(RedHatPolicy):
5150eb
-    distro = RHEL_RELEASE_STR
5150eb
-    vendor = "Red Hat"
5150eb
-    vendor_url = "https://access.redhat.com/support/"
5150eb
+    distro = "CentOS Linux"
5150eb
+    vendor = "CentOS"
5150eb
+    vendor_url = "https://wiki.centos.org/"
5150eb
     msg = _("""\
5150eb
 This command will collect diagnostic and configuration \
5150eb
 information from this %(distro)s system and installed \
a4b4c0
@@ -257,7 +257,7 @@ support representative.
5150eb
     def check(cls):
5150eb
         """Test to see if the running host is a RHEL installation.
5150eb
 
5150eb
-            Checks for the presence of the "Red Hat Enterprise Linux"
5150eb
+            Checks for the presence of the "CentOS Linux"
5150eb
             release string at the beginning of the NAME field in the
5150eb
             `/etc/os-release` file and returns ``True`` if it is
5150eb
             found, and ``False`` otherwise.
a4b4c0
@@ -314,7 +314,7 @@ class CentOsPolicy(RHELPolicy):
5150eb
 
5150eb
 ATOMIC = "atomic"
5150eb
 ATOMIC_RELEASE_STR = "Atomic"
5150eb
-ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
5150eb
+ATOMIC_DESC = "CentOS Linux Atomic Host"
5150eb
 
5150eb
 atomic_presets = {
5150eb
     ATOMIC: PresetDefaults(name=ATOMIC, desc=ATOMIC_DESC, note=NOTE_TIME,
a4b4c0
@@ -323,7 +323,7 @@ atomic_presets = {
5150eb
 
5150eb
 
5150eb
 class RedHatAtomicPolicy(RHELPolicy):
5150eb
-    distro = "Red Hat Atomic Host"
5150eb
+    distro = "CentOS Atomic Host"
5150eb
     msg = _("""\
5150eb
 This command will collect diagnostic and configuration \
5150eb
 information from this %(distro)s system.