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

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