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

c102a7
diff -uNrp sos-3.4.orig/sos/policies/redhat.py sos-3.4/sos/policies/redhat.py
c102a7
--- sos-3.4.orig/sos/policies/redhat.py	2017-08-09 22:26:42.179358997 +0000
c102a7
+++ sos-3.4/sos/policies/redhat.py	2017-08-09 22:33:25.371349658 +0000
c102a7
@@ -34,9 +34,9 @@ except:
c102a7
 
c102a7
 
c102a7
 class RedHatPolicy(LinuxPolicy):
c102a7
-    distro = "Red Hat"
c102a7
-    vendor = "Red Hat"
c102a7
-    vendor_url = "http://www.redhat.com/"
c102a7
+    distro = "CentOS"
c102a7
+    vendor = "CentOS"
c102a7
+    vendor_url = "http://www.centos.org/"
c102a7
     _redhat_release = '/etc/redhat-release'
c102a7
     _tmp_dir = "/var/tmp"
c102a7
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}\\n"'
c102a7
@@ -82,9 +82,9 @@ class RedHatPolicy(LinuxPolicy):
c102a7
 
c102a7
     @classmethod
c102a7
     def check(cls):
c102a7
-        """This method checks to see if we are running on Red Hat. It must be
c102a7
+        """This method checks to see if we are running on CentOS. It must be
c102a7
         overriden by concrete subclasses to return True when running on a
c102a7
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
c102a7
+        Fedora, RHEL or other CentOS distribution or False otherwise."""
c102a7
         return False
c102a7
 
c102a7
     def _container_init(self):
c102a7
@@ -132,15 +132,15 @@ class RedHatPolicy(LinuxPolicy):
c102a7
     def get_local_name(self):
c102a7
         return self.host_name()
c102a7
 
c102a7
-# Container environment variables on Red Hat systems.
c102a7
+# Container environment variables on CentOS systems.
c102a7
 ENV_CONTAINER = 'container'
c102a7
 ENV_HOST_SYSROOT = 'HOST'
c102a7
 
c102a7
 
c102a7
 class RHELPolicy(RedHatPolicy):
c102a7
-    distro = "Red Hat Enterprise Linux"
c102a7
-    vendor = "Red Hat"
c102a7
-    vendor_url = "https://access.redhat.com/support/"
c102a7
+    distro = "CentOS Linux"
c102a7
+    vendor = "CentOS"
c102a7
+    vendor_url = "https://wiki.centos.org/"
c102a7
     msg = _("""\
c102a7
 This command will collect diagnostic and configuration \
c102a7
 information from this %(distro)s system and installed \
c102a7
@@ -204,7 +204,7 @@ No changes will be made to system config
c102a7
 
c102a7
 
c102a7
 class RedHatAtomicPolicy(RHELPolicy):
c102a7
-    distro = "Red Hat Atomic Host"
c102a7
+    distro = "CentOS Atomic Host"
c102a7
     msg = _("""\
c102a7
 This command will collect diagnostic and configuration \
c102a7
 information from this %(distro)s system.