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

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