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

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