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

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