From a6c6ef5aa46c027cbe6fcaccb9fbb660530ca033 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 11 Jun 2015 10:13:18 -0600 Subject: [PATCH] Add SELinuxError Signed-off-by: Zack Cerza --- teuthology/exceptions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/teuthology/exceptions.py b/teuthology/exceptions.py index 9034d5fad..73c59ae89 100644 --- a/teuthology/exceptions.py +++ b/teuthology/exceptions.py @@ -110,3 +110,13 @@ class UnsupportedPackageTypeError(Exception): def __str__(self): return "os.package_type {pkg_type!r} on {node}".format( node=self.node, pkg_type=self.node.os.package_type) + + +class SELinuxError(Exception): + def __init__(self, node, denials): + self.node = node + self.denials = denials + + def __str__(self): + return "SELinux denials found on {node}: {denials}".format( + node=self.node, denials=self.denials) -- 2.47.3