Blame SOURCES/sos-centos-branding.patch

f7d950
diff -uNrp sos-3.9.orig/sos/policies/redhat.py sos-3.9/sos/policies/redhat.py
f7d950
--- sos-3.9.orig/sos/policies/redhat.py	2020-03-24 15:33:13.000000000 +0000
f7d950
+++ sos-3.9/sos/policies/redhat.py	2020-10-03 12:48:32.088747085 +0000
f7d950
@@ -31,9 +31,9 @@ except NameError:
f8c5b1
 
f8c5b1
 
f7d950
 class RedHatPolicy(LinuxPolicy):
f7d950
-    distro = "Red Hat"
f7d950
-    vendor = "Red Hat"
f7d950
-    vendor_url = "https://www.redhat.com/"
f7d950
+    distro = "CentOS"
f7d950
+    vendor = "CentOS"
f7d950
+    vendor_url = "https://www.centos.org/"
f7d950
     _redhat_release = '/etc/redhat-release'
f7d950
     _tmp_dir = "/var/tmp"
f7d950
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\\n"'
f7d950
@@ -89,7 +89,7 @@ class RedHatPolicy(LinuxPolicy):
f7d950
     def check(cls):
f7d950
         """This method checks to see if we are running on Red Hat. It must be
f7d950
         overriden by concrete subclasses to return True when running on a
f7d950
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
f7d950
+        Fedora, CentOS, RHEL or other Red Hat distribution or False otherwise."""
f7d950
         return False
f8c5b1
 
f7d950
     def check_usrmove(self, pkgs):
f7d950
@@ -187,29 +187,29 @@ _opts_all_logs_verify = SoSOptions(all_l
f7d950
 _cb_profiles = ['boot', 'storage', 'system']
f7d950
 _cb_plugopts = ['boot.all-images=on', 'rpm.rpmva=on', 'rpm.rpmdb=on']
f8c5b1
 
f7d950
-RHEL_RELEASE_STR = "Red Hat Enterprise Linux"
f7d950
+RHEL_RELEASE_STR = "CentOS Linux"
f8c5b1
 
f7d950
 RHV = "rhv"
f7d950
-RHV_DESC = "Red Hat Virtualization"
f7d950
+RHV_DESC = "Virtualization"
f8c5b1
 
f7d950
 RHEL = "rhel"
f7d950
 RHEL_DESC = RHEL_RELEASE_STR
f8c5b1
 
f7d950
 RHOSP = "rhosp"
f7d950
-RHOSP_DESC = "Red Hat OpenStack Platform"
f7d950
+RHOSP_DESC = "OpenStack Platform"
f8c5b1
 
f7d950
 RHOCP = "ocp"
f7d950
-RHOCP_DESC = "OpenShift Container Platform by Red Hat"
f7d950
+RHOCP_DESC = "OpenShift Container Platform"
f7d950
 RHOSP_OPTS = SoSOptions(plugopts=[
f7d950
                              'process.lsof=off',
f7d950
                              'networking.ethtool_namespaces=False',
f7d950
                              'networking.namespaces=200'])
f8c5b1
 
f7d950
 RH_CFME = "cfme"
f7d950
-RH_CFME_DESC = "Red Hat CloudForms"
f7d950
+RH_CFME_DESC = "CloudForms"
f8c5b1
 
f7d950
 RH_SATELLITE = "satellite"
f7d950
-RH_SATELLITE_DESC = "Red Hat Satellite"
f7d950
+RH_SATELLITE_DESC = "Satellite"
f7d950
 SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on'])
f8c5b1
 
f7d950
 CB = "cantboot"
f7d950
@@ -257,8 +257,8 @@ RH_FTP_HOST = "ftp://dropbox.redhat.com"
f8c5b1
 
f7d950
 class RHELPolicy(RedHatPolicy):
f7d950
     distro = RHEL_RELEASE_STR
f7d950
-    vendor = "Red Hat"
f7d950
-    vendor_url = "https://access.redhat.com/support/"
f7d950
+    vendor = "CentOS"
f7d950
+    vendor_url = "https://wiki.centos.org/support"
f7d950
     msg = _("""\
f7d950
 This command will collect diagnostic and configuration \
f7d950
 information from this %(distro)s system and installed \
f7d950
@@ -280,7 +280,7 @@ support representative.
f7d950
     def check(cls):
f7d950
         """Test to see if the running host is a RHEL installation.
f7d950
 
f7d950
-            Checks for the presence of the "Red Hat Enterprise Linux"
f7d950
+            Checks for the presence of the "CentOS Linux"
f7d950
             release string at the beginning of the NAME field in the
f7d950
             `/etc/os-release` file and returns ``True`` if it is
f7d950
             found, and ``False`` otherwise.
f7d950
@@ -309,7 +309,7 @@ support representative.
f8c5b1
             return
f7d950
         if self.case_id:
f7d950
             self.upload_user = input(_(
f7d950
-                "Enter your Red Hat Customer Portal username (empty to use "
f7d950
+                "Enter your Customer Portal username (empty to use "
f7d950
                 "public dropbox): ")
f7d950
             )
f8c5b1
 
f7d950
@@ -334,7 +334,7 @@ support representative.
f8c5b1
 
f7d950
     def get_upload_url_string(self):
f7d950
         if self.get_upload_url().startswith(RH_API_HOST):
f7d950
-            return "Red Hat Customer Portal"
f7d950
+            return "Customer Portal"
f7d950
         return self.upload_url or RH_FTP_HOST
f8c5b1
 
f7d950
     def get_upload_user(self):
f7d950
@@ -389,7 +389,7 @@ class CentOsPolicy(RHELPolicy):
f8c5b1
 
f7d950
 ATOMIC = "atomic"
f7d950
 ATOMIC_RELEASE_STR = "Atomic"
f7d950
-ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
f7d950
+ATOMIC_DESC = "Atomic Host"
f8c5b1
 
f7d950
 atomic_presets = {
f7d950
     ATOMIC: PresetDefaults(name=ATOMIC, desc=ATOMIC_DESC, note=NOTE_TIME,
f7d950
@@ -398,7 +398,7 @@ atomic_presets = {
f8c5b1
 
f8c5b1
 
f7d950
 class RedHatAtomicPolicy(RHELPolicy):
f7d950
-    distro = "Red Hat Atomic Host"
f7d950
+    distro = "Atomic Host"
f7d950
     msg = _("""\
f7d950
 This command will collect diagnostic and configuration \
f7d950
 information from this %(distro)s system.
f7d950
@@ -435,7 +435,7 @@ support representative.
f8c5b1
 
f8c5b1
 
f7d950
 class RedHatCoreOSPolicy(RHELPolicy):
f7d950
-    distro = "Red Hat CoreOS"
f7d950
+    distro = "CoreOS"
f8c5b1
     msg = _("""\
f8c5b1
 This command will collect diagnostic and configuration \
f7d950
 information from this %(distro)s system.
f7d950
@@ -456,7 +456,7 @@ support representative.
f7d950
         host_release = os.environ[ENV_HOST_SYSROOT] + cls._redhat_release
f7d950
         try:
f7d950
             for line in open(host_release, 'r').read().splitlines():
f7d950
-                coreos |= 'Red Hat CoreOS' in line
f7d950
+                coreos |= 'CoreOS' in line
f7d950
         except IOError:
f7d950
             pass
f7d950
         return coreos