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

30ff8e
diff -uNrp sos-3.6.orig/sos/policies/redhat.py sos-3.6/sos/policies/redhat.py
30ff8e
--- sos-3.6.orig/sos/policies/redhat.py	2018-11-04 17:44:59.513116585 +0000
30ff8e
+++ sos-3.6/sos/policies/redhat.py	2018-11-04 17:53:28.333731059 +0000
30ff8e
@@ -32,9 +32,9 @@ OS_RELEASE = "/etc/os-release"
30ff8e
 
30ff8e
 
30ff8e
 class RedHatPolicy(LinuxPolicy):
30ff8e
-    distro = "Red Hat"
30ff8e
-    vendor = "Red Hat"
30ff8e
-    vendor_url = "http://www.redhat.com/"
30ff8e
+    distro = "CentOS"
30ff8e
+    vendor = "CentOS"
30ff8e
+    vendor_url = "http://www,centos.org/"
30ff8e
     _redhat_release = '/etc/redhat-release'
30ff8e
     _tmp_dir = "/var/tmp"
30ff8e
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\\n"'
30ff8e
@@ -92,9 +92,9 @@ class RedHatPolicy(LinuxPolicy):
30ff8e
 
30ff8e
     @classmethod
30ff8e
     def check(cls):
30ff8e
-        """This method checks to see if we are running on Red Hat. It must be
30ff8e
+        """This method checks to see if we are running on CentOS. It must be
30ff8e
         overriden by concrete subclasses to return True when running on a
30ff8e
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
30ff8e
+        Fedora, RHEL or CentOS distribution or False otherwise."""
30ff8e
         return False
30ff8e
 
30ff8e
     def check_usrmove(self, pkgs):
30ff8e
@@ -185,7 +185,7 @@ class RedHatPolicy(LinuxPolicy):
30ff8e
         return self.host_name()
30ff8e
 
30ff8e
 
30ff8e
-# Container environment variables on Red Hat systems.
30ff8e
+# Container environment variables on CentOS systems.
30ff8e
 ENV_CONTAINER = 'container'
30ff8e
 ENV_HOST_SYSROOT = 'HOST'
30ff8e
 
30ff8e
@@ -195,22 +195,22 @@ _opts_all_logs_verify = SoSOptions(all_l
30ff8e
 _opts_all_logs_no_lsof = SoSOptions(all_logs=True,
30ff8e
                                     plugopts=['process.lsof=off'])
30ff8e
 
30ff8e
-RHEL_RELEASE_STR = "Red Hat Enterprise Linux"
30ff8e
+RHEL_RELEASE_STR = "CentOS Linux"
30ff8e
 
30ff8e
 RHV = "rhv"
30ff8e
-RHV_DESC = "Red Hat Virtualization"
30ff8e
+RHV_DESC = "CentOS Virtualization"
30ff8e
 
30ff8e
 RHEL = "rhel"
30ff8e
 RHEL_DESC = RHEL_RELEASE_STR
30ff8e
 
30ff8e
 RHOSP = "rhosp"
30ff8e
-RHOSP_DESC = "Red Hat OpenStack Platform"
30ff8e
+RHOSP_DESC = "RDO"
30ff8e
 
30ff8e
 RHOCP = "ocp"
30ff8e
-RHOCP_DESC = "OpenShift Container Platform by Red Hat"
30ff8e
+RHOCP_DESC = "OpenShift"
30ff8e
 
30ff8e
 RH_SATELLITE = "satellite"
30ff8e
-RH_SATELLITE_DESC = "Red Hat Satellite"
30ff8e
+RH_SATELLITE_DESC = "Satellite"
30ff8e
 
30ff8e
 NOTE_SIZE = "This preset may increase report size"
30ff8e
 NOTE_TIME = "This preset may increase report run time"
30ff8e
@@ -230,9 +230,9 @@ rhel_presets = {
30ff8e
 
30ff8e
 
30ff8e
 class RHELPolicy(RedHatPolicy):
30ff8e
-    distro = RHEL_RELEASE_STR
30ff8e
-    vendor = "Red Hat"
30ff8e
-    vendor_url = "https://access.redhat.com/support/"
30ff8e
+    distro = "CentOS Linux"
30ff8e
+    vendor = "CentOS"
30ff8e
+    vendor_url = "https://wiki.centos.org/"
30ff8e
     msg = _("""\
30ff8e
 This command will collect diagnostic and configuration \
30ff8e
 information from this %(distro)s system and installed \
30ff8e
@@ -262,7 +262,7 @@ No changes will be made to system config
30ff8e
     def check(cls):
30ff8e
         """Test to see if the running host is a RHEL installation.
30ff8e
 
30ff8e
-            Checks for the presence of the "Red Hat Enterprise Linux"
30ff8e
+            Checks for the presence of the "CentOS Linux"
30ff8e
             release string at the beginning of the NAME field in the
30ff8e
             `/etc/os-release` file and returns ``True`` if it is
30ff8e
             found, and ``False`` otherwise.
30ff8e
@@ -324,7 +324,7 @@ No changes will be made to system config
30ff8e
 
30ff8e
 ATOMIC = "atomic"
30ff8e
 ATOMIC_RELEASE_STR = "Atomic"
30ff8e
-ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
30ff8e
+ATOMIC_DESC = "CentOS Linux Atomic Host"
30ff8e
 
30ff8e
 atomic_presets = {
30ff8e
     ATOMIC: PresetDefaults(name=ATOMIC, desc=ATOMIC_DESC, note=NOTE_TIME,
30ff8e
@@ -333,7 +333,7 @@ atomic_presets = {
30ff8e
 
30ff8e
 
30ff8e
 class RedHatAtomicPolicy(RHELPolicy):
30ff8e
-    distro = "Red Hat Atomic Host"
30ff8e
+    distro = "CentOS Atomic Host"
30ff8e
     msg = _("""\
30ff8e
 This command will collect diagnostic and configuration \
30ff8e
 information from this %(distro)s system.