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

406e41
diff -uNrp sos-3.6.orig/sos/policies/redhat.py sos-3.6/sos/policies/redhat.py
406e41
--- sos-3.6.orig/sos/policies/redhat.py	2018-11-04 17:44:59.513116585 +0000
406e41
+++ sos-3.6/sos/policies/redhat.py	2018-11-04 17:53:28.333731059 +0000
406e41
@@ -32,9 +32,9 @@ OS_RELEASE = "/etc/os-release"
406e41
 
406e41
 
406e41
 class RedHatPolicy(LinuxPolicy):
406e41
-    distro = "Red Hat"
406e41
-    vendor = "Red Hat"
406e41
-    vendor_url = "http://www.redhat.com/"
406e41
+    distro = "CentOS"
406e41
+    vendor = "CentOS"
406e41
+    vendor_url = "http://www,centos.org/"
406e41
     _redhat_release = '/etc/redhat-release'
406e41
     _tmp_dir = "/var/tmp"
406e41
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\\n"'
406e41
@@ -92,9 +92,9 @@ class RedHatPolicy(LinuxPolicy):
406e41
 
406e41
     @classmethod
406e41
     def check(cls):
406e41
-        """This method checks to see if we are running on Red Hat. It must be
406e41
+        """This method checks to see if we are running on CentOS. It must be
406e41
         overriden by concrete subclasses to return True when running on a
406e41
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
406e41
+        Fedora, RHEL or CentOS distribution or False otherwise."""
406e41
         return False
406e41
 
406e41
     def check_usrmove(self, pkgs):
406e41
@@ -185,7 +185,7 @@ class RedHatPolicy(LinuxPolicy):
406e41
         return self.host_name()
406e41
 
406e41
 
406e41
-# Container environment variables on Red Hat systems.
406e41
+# Container environment variables on CentOS systems.
406e41
 ENV_CONTAINER = 'container'
406e41
 ENV_HOST_SYSROOT = 'HOST'
406e41
 
406e41
@@ -230,9 +230,9 @@ rhel_presets = {
406e41
 
406e41
 
406e41
 class RHELPolicy(RedHatPolicy):
406e41
-    distro = RHEL_RELEASE_STR
406e41
-    vendor = "Red Hat"
406e41
-    vendor_url = "https://access.redhat.com/support/"
406e41
+    distro = "CentOS Linux"
406e41
+    vendor = "CentOS"
406e41
+    vendor_url = "https://wiki.centos.org/"
406e41
     msg = _("""\
406e41
 This command will collect diagnostic and configuration \
406e41
 information from this %(distro)s system and installed \
406e41
@@ -262,7 +262,7 @@ No changes will be made to system config
406e41
     def check(cls):
406e41
         """Test to see if the running host is a RHEL installation.
406e41
 
406e41
-            Checks for the presence of the "Red Hat Enterprise Linux"
406e41
+            Checks for the presence of the "CentOS Linux"
406e41
             release string at the beginning of the NAME field in the
406e41
             `/etc/os-release` file and returns ``True`` if it is
406e41
             found, and ``False`` otherwise.
406e41
@@ -324,7 +324,7 @@ No changes will be made to system config
406e41
 
406e41
 ATOMIC = "atomic"
406e41
 ATOMIC_RELEASE_STR = "Atomic"
406e41
-ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
406e41
+ATOMIC_DESC = "CentOS Linux Atomic Host"
406e41
 
406e41
 atomic_presets = {
406e41
     ATOMIC: PresetDefaults(name=ATOMIC, desc=ATOMIC_DESC, note=NOTE_TIME,
406e41
@@ -333,7 +333,7 @@ atomic_presets = {
406e41
 
406e41
 
406e41
 class RedHatAtomicPolicy(RHELPolicy):
406e41
-    distro = "Red Hat Atomic Host"
406e41
+    distro = "CentOS Atomic Host"
406e41
     msg = _("""\
406e41
 This command will collect diagnostic and configuration \
406e41
 information from this %(distro)s system.
406e41
diff -uNrp sos-3.7.orig/sos/policies/redhat.py sos-3.7/sos/policies/redhat.py
406e41
--- sos-3.7.orig/sos/policies/redhat.py	2019-08-07 15:24:23.198233507 +0000
406e41
+++ sos-3.7/sos/policies/redhat.py	2019-08-07 15:29:08.324131718 +0000
406e41
@@ -198,7 +198,7 @@ _cb_plugs = ['abrt', 'block', 'boot', 'd
406e41
              'hardware', 'host', 'kernel', 'logs', 'lvm2', 'memory', 'rpm',
406e41
              'process', 'systemd', 'yum', 'xfs']
406e41
 
406e41
-RHEL_RELEASE_STR = "Red Hat Enterprise Linux"
406e41
+RHEL_RELEASE_STR = "CentOS Linux"
406e41
 
406e41
 RHV = "rhv"
406e41
 RHV_DESC = "Red Hat Virtualization"
406e41
@@ -207,13 +207,13 @@ RHEL = "rhel"
406e41
 RHEL_DESC = RHEL_RELEASE_STR
406e41
 
406e41
 RHOSP = "rhosp"
406e41
-RHOSP_DESC = "Red Hat OpenStack Platform"
406e41
+RHOSP_DESC = "RDO"
406e41
 
406e41
 RHOCP = "ocp"
406e41
-RHOCP_DESC = "OpenShift Container Platform by Red Hat"
406e41
+RHOCP_DESC = "OpenShift"
406e41
 
406e41
 RH_SATELLITE = "satellite"
406e41
-RH_SATELLITE_DESC = "Red Hat Satellite"
406e41
+RH_SATELLITE_DESC = "Satellite"
406e41
 SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on'])
406e41
 
406e41
 CB = "cantboot"