]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add SELinuxError
authorZack Cerza <zack@redhat.com>
Thu, 11 Jun 2015 16:13:18 +0000 (10:13 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 17 Jun 2015 21:33:53 +0000 (15:33 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/exceptions.py

index 9034d5fadb2e02ddf62c801d3657a6b53e43db62..73c59ae8945d1f52c721e5859a656278029cbece 100644 (file)
@@ -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)