aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/policies/redhat.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py
index 1d1606b6..580b7454 100644
--- a/sos/policies/redhat.py
+++ b/sos/policies/redhat.py
@@ -281,7 +281,7 @@ support representative.
if line.startswith("NAME"):
(name, value) = line.split("=")
value = value.strip("\"'")
- if value.startswith(RHEL_RELEASE_STR):
+ if value.startswith(cls.distro):
return True
return False
@@ -325,6 +325,12 @@ support representative.
return self.find_preset(RHEL)
+class CentOsPolicy(RHELPolicy):
+ distro = "CentOS"
+ vendor = "CentOS"
+ vendor_url = "http://www.centos.org/"
+
+
ATOMIC = "atomic"
ATOMIC_RELEASE_STR = "Atomic"
ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
@@ -405,6 +411,12 @@ support representative.
return self.find_preset(RHOCP)
+class CentOsAtomicPolicy(RedHatAtomicPolicy):
+ distro = "CentOS Atomic Host"
+ vendor = "CentOS"
+ vendor_url = "http://www.centos.org/"
+
+
class FedoraPolicy(RedHatPolicy):
distro = "Fedora"