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

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