From: Zack Cerza Date: Thu, 11 Jun 2015 16:13:18 +0000 (-0600) Subject: Add SELinuxError X-Git-Tag: 1.1.0~900^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a6c6ef5aa46c027cbe6fcaccb9fbb660530ca033;p=teuthology.git Add SELinuxError Signed-off-by: Zack Cerza --- 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)